mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 19:38:40 -04:00
Add a get_invites_for_user method to the storage to find out the rooms a user is invited to
This commit is contained in:
parent
54414221e4
commit
cacf0688c6
2 changed files with 16 additions and 6 deletions
|
@ -297,12 +297,8 @@ class SyncHandler(BaseHandler):
|
|||
if room_sync:
|
||||
joined.append(room_sync)
|
||||
else:
|
||||
invites = yield self.store.get_rooms_for_user_where_membership_is(
|
||||
user_id=sync_config.user.to_string(),
|
||||
membership_list=[Membership.INVITE],
|
||||
)
|
||||
invite_events = yield self.store.get_events(
|
||||
[invite.event_id for invite in invites]
|
||||
invite_events = yield self.store.get_invites_for_user(
|
||||
sync_config.user.to_string()
|
||||
)
|
||||
|
||||
for room_id in joined_room_ids:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue