mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 09:07:22 +00:00
fixup! Add a query for which rooms have sticky events in a stream range
This commit is contained in:
1 parent
b7ef02db92
commit
ef1307728d
1 file changed
+4
-2
@@ -281,8 +281,10 @@ class StickyEventsWorkerStore(StateGroupWorkerStore, CacheInvalidationWorkerStor
|
||||
to_token: MultiWriterStreamToken,
|
||||
) -> set[str]:
|
||||
"""Given a set of room IDs, find out which of them have sticky events
|
||||
(unexpired or not) with sticky stream positions after `from_token` and
|
||||
at or before `to_token`.
|
||||
in the `sticky_events` table (which may be expired and awaiting cleanup)
|
||||
with sticky stream positions after `from_token` and at or before `to_token`.
|
||||
|
||||
Bounds: from_token < ... <= to_token
|
||||
|
||||
Args:
|
||||
room_ids: The room IDs to check.
|
||||
|
||||
Reference in new issue
Block a user