diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-05-05 13:33:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 13:33:05 -0400 |
commit | d783880083733a694ed4c7b15ca53be00e06f8a7 (patch) | |
tree | 610695190dea3de833fd557a3155711a125d9b05 /synapse | |
parent | Increase perf of handling presence when joining large rooms. (#9916) (diff) | |
download | synapse-d783880083733a694ed4c7b15ca53be00e06f8a7.tar.xz |
Include the time of the create event in Spaces Summary. (#9928)
This is an update based on changes to MSC2946. The origin_server_ts of the m.room.create event is copied into the creation_ts field for each room returned from the spaces summary.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/space_summary.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/space_summary.py b/synapse/handlers/space_summary.py index d32452747c..2e997841f1 100644 --- a/synapse/handlers/space_summary.py +++ b/synapse/handlers/space_summary.py @@ -347,6 +347,7 @@ class SpaceSummaryHandler: stats["history_visibility"] == HistoryVisibility.WORLD_READABLE ), "guest_can_join": stats["guest_access"] == "can_join", + "creation_ts": create_event.origin_server_ts, "room_type": room_type, } |