mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:46:02 -04:00
Include users membership in group in summary API
This commit is contained in:
parent
851aeae7c7
commit
b76ef6ccb8
2 changed files with 60 additions and 0 deletions
|
@ -130,6 +130,10 @@ class GroupsServerHandler(object):
|
|||
|
||||
users.sort(key=lambda e: e.get("order", 0))
|
||||
|
||||
membership_info = yield self.store.get_users_membership_info_in_group(
|
||||
group_id, requester_user_id,
|
||||
)
|
||||
|
||||
defer.returnValue({
|
||||
"profile": profile,
|
||||
"users_section": {
|
||||
|
@ -142,6 +146,7 @@ class GroupsServerHandler(object):
|
|||
"categories": categories,
|
||||
"total_room_count_estimate": 0, # TODO
|
||||
},
|
||||
"user": membership_info,
|
||||
})
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue