Only joined rooms have unread_notif_count

This commit is contained in:
David Baker 2016-01-04 15:49:06 +00:00
parent d74c6ace24
commit c77e7e60fc
1 changed files with 1 additions and 1 deletions

View File

@ -311,12 +311,12 @@ class SyncRestServlet(RestServlet):
},
"state": {"events": serialized_state},
"account_data": {"events": account_data},
"unread_notification_count": room.unread_notification_count
}
if joined:
ephemeral_events = filter.filter_room_ephemeral(room.ephemeral)
result["ephemeral"] = {"events": ephemeral_events}
result["unread_notification_count"] = room.unread_notification_count
return result