From ce09ef058bc7bf0358bbc5e090035f2fc5995669 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 30 Jul 2024 12:50:37 +0100 Subject: Only mark as updated if entry has changed --- synapse/handlers/sliding_sync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py index b1bede894d..e4c438f6c8 100644 --- a/synapse/handlers/sliding_sync.py +++ b/synapse/handlers/sliding_sync.py @@ -2342,8 +2342,10 @@ class SlidingSyncConnectionStore: # end we can treat this as a noop. have_updated = False for room_id in sent_room_ids: + prev_state = new_room_statuses.get(room_id) new_room_statuses[room_id] = HaveSentRoom.live() - have_updated = True + if prev_state != new_room_statuses[room_id]: + have_updated = True # Whether we add/update the entries for unsent rooms depends on the # existing entry: -- cgit 1.4.1