mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-28 15:52:09 -04:00
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
This commit is contained in:
commit
bbc0dbeec0
11 changed files with 98 additions and 54 deletions
|
@ -749,8 +749,7 @@ class JoinedRoomsRestServlet(ClientV1RestServlet):
|
|||
def on_GET(self, request):
|
||||
requester = yield self.auth.get_user_by_req(request, allow_guest=True)
|
||||
|
||||
rooms = yield self.store.get_rooms_for_user(requester.user.to_string())
|
||||
room_ids = set(r.room_id for r in rooms) # Ensure they're unique.
|
||||
room_ids = yield self.store.get_rooms_for_user(requester.user.to_string())
|
||||
defer.returnValue((200, {"joined_rooms": list(room_ids)}))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue