Only compute unread notifications for rooms we send down stream

This commit is contained in:
Erik Johnston 2016-01-19 17:19:53 +00:00
parent 2818a000aa
commit ac2842ff1e
2 changed files with 23 additions and 30 deletions

View file

@ -312,8 +312,7 @@ class SyncRestServlet(RestServlet):
if joined:
ephemeral_events = filter.filter_room_ephemeral(room.ephemeral)
result["ephemeral"] = {"events": ephemeral_events}
result["unread_notification_count"] = room.unread_notification_count
result["unread_highlight_count"] = room.unread_highlight_count
result["unread_notifications"] = room.unread_notifications
return result