mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 06:33:14 +03:00
Only mark as updated if entry has changed
This commit is contained in:
parent
9284cc0110
commit
ce09ef058b
1 changed files with 3 additions and 1 deletions
|
@ -2342,8 +2342,10 @@ class SlidingSyncConnectionStore:
|
||||||
# end we can treat this as a noop.
|
# end we can treat this as a noop.
|
||||||
have_updated = False
|
have_updated = False
|
||||||
for room_id in sent_room_ids:
|
for room_id in sent_room_ids:
|
||||||
|
prev_state = new_room_statuses.get(room_id)
|
||||||
new_room_statuses[room_id] = HaveSentRoom.live()
|
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
|
# Whether we add/update the entries for unsent rooms depends on the
|
||||||
# existing entry:
|
# existing entry:
|
||||||
|
|
Loading…
Reference in a new issue