aboutsummaryrefslogtreecommitdiff
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/juick/server/MessagesQueries.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/juick/server/MessagesQueries.java b/src/com/juick/server/MessagesQueries.java
index 2de875d4..64ee3b96 100644
--- a/src/com/juick/server/MessagesQueries.java
+++ b/src/com/juick/server/MessagesQueries.java
@@ -143,6 +143,7 @@ public class MessagesQueries {
msg.TimestampString = rs.getString(4);
msg.ReadOnly = rs.getBoolean(5);
msg.Privacy = rs.getInt(6);
+ msg.FriendsOnly = msg.Privacy < 0;
msg.Replies = rs.getInt(7);
msg.AttachmentType = rs.getString(8);
//if (rs.getInt(9) > 0) {
@@ -795,6 +796,7 @@ public class MessagesQueries {
}
msg.ReadOnly = rs.getInt(5) == 1;
msg.Privacy = rs.getInt(6);
+ msg.FriendsOnly = msg.Privacy < 0;
msg.Text = rs.getString(7);
msg.TimeAgo = rs.getInt(8);
msg.TimestampString = rs.getString(9);