mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-17 03:02:13 -04:00
Transfer upgraded rooms on groups
This commit is contained in:
parent
cc6243b4c0
commit
0287d033ee
3 changed files with 25 additions and 0 deletions
|
@ -552,6 +552,21 @@ class GroupServerStore(SQLBaseStore):
|
|||
keyvalues={"group_id": group_id, "role_id": role_id, "user_id": user_id},
|
||||
desc="remove_user_from_summary",
|
||||
)
|
||||
|
||||
def get_local_groups_for_room(self, room_id):
|
||||
"""Get all of the local group that contain a given room
|
||||
Args:
|
||||
room_id (str): The ID of a room
|
||||
Returns:
|
||||
Deferred[list[str]]: A twisted.Deferred containing a list of group ids
|
||||
containing this room
|
||||
"""
|
||||
return self._simple_select_onecol(
|
||||
table="group_rooms",
|
||||
keyvalues={"room_id": room_id},
|
||||
retcol="group_id",
|
||||
desc="get_local_groups_for_room",
|
||||
)
|
||||
|
||||
def get_users_for_summary_by_role(self, group_id, include_private=False):
|
||||
"""Get the users and roles that should be included in a summary request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue