mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:34:47 -04:00
Only compute unread notifications for rooms we send down stream
This commit is contained in:
parent
2818a000aa
commit
ac2842ff1e
2 changed files with 23 additions and 30 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue