This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Support MSC3266 room summaries over federation #11507
Merged
squahtx
merged 19 commits into
matrix-org:develop
from
deepbluev7:nico/room-summary-federation
May 5, 2022
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2dcb306
Support MSC3266 room summaries over federation
deepbluev7 946ac90
Add changelog
deepbluev7 3269f1e
Update synapse/handlers/room_summary.py
deepbluev7 9543837
Update to not use the deprecated summary federation API
deepbluev7 7d4bafd
Add encryption to summary
deepbluev7 96c848d
Add room version field
deepbluev7 51e6374
Don't manually exclude summary fields
deepbluev7 10ac986
Apply suggestions from code review
deepbluev7 c8ae763
Add basic federation test for room summaries
deepbluev7 9f5ef27
fedroom -> fed_room
deepbluev7 cbb58f2
Fix remote room membership handling
deepbluev7 6ff9873
Update synapse/handlers/room_summary.py
deepbluev7 1318e6b
Don't overwrite cache entry by accident
deepbluev7 433a394
Remove redundant room_id check
deepbluev7 87bcc6f
Add assert for returned hierarchy response to federation client
deepbluev7 0184eac
Move additional parameters in /hierarchy response behind unstable flag
deepbluev7 a92d936
Update synapse/federation/federation_client.py
deepbluev7 5481e11
Invert logic of room summary handler to reduce indentation
deepbluev7 a0fb144
Reflow comments
deepbluev7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Support [MSC3266](https://github.com/matrix-org/matrix-doc/pull/3266) room summaries over federation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm finding the level of indentation here rather difficult to follow. It could be nicer to check
if not room_entry
and raise immediately, rather than at the bottom of the method, but won't block on that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've inverted the logic now and combined the 2 if cases, which gets rid of 2 levels of indentation. If I don't combine them I would have to duplicate the error messages, because I want the error to be the same for inaccessible or not found.