mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 12:39:32 -05:00
Only joined rooms have unread_notif_count
This commit is contained in:
parent
d74c6ace24
commit
c77e7e60fc
@ -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 New Issue
Block a user