diff options
author | Ugnich Anton | 2013-12-19 02:06:20 +0700 |
---|---|---|
committer | Ugnich Anton | 2013-12-19 02:06:20 +0700 |
commit | dded0cfb7c3b6c356e0d8703c1ebdea24924eb5e (patch) | |
tree | 279c2bfc2a9ca4db999741fc03832920ee673ba2 /src/com | |
parent | 2bc4ccc437bb036de4ac5db23af8a276f1a708d5 (diff) |
msg.FriendsOnly
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/juick/server/MessagesQueries.java | 2 |
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); |