This commit is contained in:
Erik Johnston 2017-07-11 14:23:50 +01:00
parent 6322fbbd41
commit 0aac30d53b
3 changed files with 9 additions and 5 deletions

View file

@ -80,7 +80,9 @@ class GroupsServerHandler(object):
@defer.inlineCallbacks
def get_users_in_group(self, group_id, requester_user_id):
"""Get the users in group as seen by requester_user_id
"""Get the users in group as seen by requester_user_id.
The ordering is arbitrary at the moment
"""
yield self.check_group_is_ours(group_id, and_exists=True)
@ -126,6 +128,8 @@ class GroupsServerHandler(object):
@defer.inlineCallbacks
def get_rooms_in_group(self, group_id, requester_user_id):
"""Get the rooms in group as seen by requester_user_id
This returns rooms in order of decreasing number of joined users
"""
yield self.check_group_is_ours(group_id, and_exists=True)