mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-19 14:30:45 -04:00
allow on_invalidate=None
in @cached
methods (#12769)
This commit is contained in:
parent
6edefef602
commit
5331fb5b47
3 changed files with 19 additions and 10 deletions
|
@ -15,6 +15,7 @@
|
|||
import logging
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Callable,
|
||||
Collection,
|
||||
Dict,
|
||||
FrozenSet,
|
||||
|
@ -634,7 +635,7 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||
)
|
||||
|
||||
async def get_rooms_for_user(
|
||||
self, user_id: str, on_invalidate=None
|
||||
self, user_id: str, on_invalidate: Optional[Callable[[], None]] = None
|
||||
) -> FrozenSet[str]:
|
||||
"""Returns a set of room_ids the user is currently joined to.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue