mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-17 17:00:24 -04:00
Add remove room API
This commit is contained in:
parent
a8e2a3df32
commit
17b8e2bd02
6 changed files with 72 additions and 1 deletions
|
@ -472,6 +472,18 @@ class GroupsServerHandler(object):
|
|||
|
||||
defer.returnValue({})
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def remove_room_from_group(self, group_id, requester_user_id, room_id):
|
||||
"""Remove room from group
|
||||
"""
|
||||
yield self.check_group_is_ours(
|
||||
group_id, and_exists=True, and_is_admin=requester_user_id
|
||||
)
|
||||
|
||||
yield self.store.remove_room_from_group(group_id, room_id)
|
||||
|
||||
defer.returnValue({})
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def invite_to_group(self, group_id, user_id, requester_user_id, content):
|
||||
"""Invite user to group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue