Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit 8804840

Browse files
committed
Fix HTTPPusherTests by honouring mac2654 configuration
1 parent 55e84e5 commit 8804840

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

synapse/push/push_tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ async def get_room_unread_count(room_id: str) -> None:
4646

4747
# Beeper change: Only count a room as having unread messages if we
4848
# have both unread events (MSC2654) *and* notifications (ie, not muted).
49-
if notify_count == 0 or notifs.main_timeline.unread_count == 0:
49+
if notify_count == 0 or (
50+
store.hs.config.experimental.msc2654_enabled
51+
and notifs.main_timeline.unread_count == 0
52+
):
5053
continue
5154

5255
if group_by_room:

0 commit comments

Comments
 (0)