From dded0cfb7c3b6c356e0d8703c1ebdea24924eb5e Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Thu, 19 Dec 2013 02:06:20 +0700 Subject: msg.FriendsOnly --- src/com/juick/server/MessagesQueries.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3