diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/juick/json/UserSerializer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/json/UserSerializer.java b/src/main/java/com/juick/json/UserSerializer.java index 4485812a..390f4bf6 100644 --- a/src/main/java/com/juick/json/UserSerializer.java +++ b/src/main/java/com/juick/json/UserSerializer.java @@ -55,8 +55,8 @@ public class UserSerializer extends JSONSerializer<User> { if (user.getJID() != null) { json.put("jid", user.getJID()); } - if (user.MessagesCount > 0) { - json.put("MessagesCount", user.MessagesCount); + if (user.getUnreadCount() > 0) { + json.put("unreadCount", user.getUnreadCount()); } } catch (JSONException e) { } |