Reduce strictness of delayed event delta fetching (#18858)

This commit is contained in:
Andrew Ferrazzutti
2025-08-27 08:26:10 -04:00
committed by GitHub
parent 499f947c67
commit c339021ce8
2 changed files with 4 additions and 3 deletions

1
changelog.d/18858.bugfix Normal file
View File

@@ -0,0 +1 @@
Do not throw an error when fetching a rejected delayed state event on startup.

View File

@@ -215,9 +215,9 @@ class DelayedEventsHandler:
"Handling: %r %r, %s", delta.event_type, delta.state_key, delta.event_id
)
event = await self._store.get_event(
delta.event_id, check_room_id=delta.room_id
)
event = await self._store.get_event(delta.event_id, allow_none=True)
if not event:
continue
sender = UserID.from_string(event.sender)
next_send_ts = await self._store.cancel_delayed_state_events(