Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 83b38ee

Browse files
committedMay 12, 2022
fix handlers/sync.py
1 parent def50a8 commit 83b38ee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

Diff for: ‎synapse/handlers/sync.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,11 @@ async def current_sync_for_user(
410410
set_tag(SynapseTags.SYNC_RESULT, bool(sync_result))
411411
return sync_result
412412

413-
async def push_rules_for_user(self, user: UserID) -> JsonDict:
413+
async def push_rules_for_user(self, user: UserID) -> Dict[str, Dict[str, list]]:
414414
user_id = user.to_string()
415415
rules = await self.store.get_push_rules_for_user(user_id)
416-
rules = format_push_rules_for_user(user, rules)
417-
return rules
416+
result = format_push_rules_for_user(user, rules)
417+
return result
418418

419419
async def ephemeral_by_room(
420420
self,

Diff for: ‎synapse/storage/databases/main/roommember.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
ProfileInfo,
5252
RoomsForUser,
5353
)
54-
from synapse.types import JsonDict, PersistedEventPosition, StateMap, get_domain_from_id
54+
from synapse.types import PersistedEventPosition, StateMap, get_domain_from_id
5555
from synapse.util.async_helpers import Linearizer
5656
from synapse.util.caches import intern_string
5757
from synapse.util.caches.descriptors import _CacheContext, cached, cachedList

0 commit comments

Comments
 (0)
This repository has been archived.