From 72d6b69ea234a67bb392f21dac9dea1a2d28b6f5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 15 Jul 2018 12:10:29 +0300 Subject: unread in /me --- juick-server/src/main/java/com/juick/server/api/Users.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'juick-server/src/main/java') diff --git a/juick-server/src/main/java/com/juick/server/api/Users.java b/juick-server/src/main/java/com/juick/server/api/Users.java index 9a2b25d7..41deddb8 100644 --- a/juick-server/src/main/java/com/juick/server/api/Users.java +++ b/juick-server/src/main/java/com/juick/server/api/Users.java @@ -77,7 +77,9 @@ public class Users { me.setUid(visitor.getUid()); me.setName(visitor.getName()); me.setAuthHash(getAuthToken()); - me.setUnreadCount(messagesService.getUnread(visitor).size()); + List unread = messagesService.getUnread(visitor); + me.setUnread(unread); + me.setUnreadCount(unread.size()); me.setRead(userService.getUserFriends(visitor.getUid())); me.setReaders(userService.getUserReaders(visitor.getUid())); return me; -- cgit v1.2.3