1
0

Build set directly

This commit is contained in:
Olivier 'reivilibre
2025-12-18 12:44:25 +00:00
parent e1b6eab8a9
commit 0ea82c597c
@@ -382,21 +382,13 @@ class StickyEventsWorkerStore(StateGroupWorkerStore, CacheInvalidationWorkerStor
EventTypes.PowerLevels,
EventTypes.Member,
)
critical_auth_types_changed = set()
critical_auth_types_changed.update(
[
typ
for typ, _ in state_delta_for_room.to_delete
if typ in critical_auth_types
]
)
critical_auth_types_changed.update(
[
typ
for typ, _ in state_delta_for_room.to_insert
if typ in critical_auth_types
]
)
critical_auth_types_changed = {
typ
for typ, _ in chain(
state_delta_for_room.to_insert, state_delta_for_room.to_delete
)
if typ in critical_auth_types
}
if len(critical_auth_types_changed) == 0:
# No change to critical auth events => no way soft failure status could be different.
return []