Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Include the origin_server_ts of the create event in Spaces Summary. #9928

Merged
merged 3 commits into from
May 5, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/9928.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include the `origin_server_ts` property in the experimental [MSC2946](https://github.com/matrix-org/matrix-doc/pull/2946) support to allow clients to properly sort rooms.
1 change: 1 addition & 0 deletions synapse/handlers/space_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ async def _build_room_entry(self, room_id: str) -> JsonDict:
stats["history_visibility"] == HistoryVisibility.WORLD_READABLE
),
"guest_can_join": stats["guest_access"] == "can_join",
"origin_server_ts": create_event.origin_server_ts,
clokep marked this conversation as resolved.
Show resolved Hide resolved
"room_type": room_type,
}

Expand Down