mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 11:20:07 +00:00
Only joined rooms have unread_notif_count
This commit is contained in:
parent
d74c6ace24
commit
c77e7e60fc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue