Only mark as updated if entry has changed

This commit is contained in:
Erik Johnston 2024-07-30 12:50:37 +01:00
parent 9284cc0110
commit ce09ef058b

View file

@ -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: