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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix join being denied after being invited over federation #18075
base: develop
Are you sure you want to change the base?
Fix join being denied after being invited over federation #18075
Changes from all commits
e4c3e7b
d31ff53
1d64beb
a32c1ba
9a35155
825b249
0698dcf
8c6b294
e4dad14
7e60ec0
ad8ed0c
d0639e4
7855892
b3bda0e
0d01cda
83237f7
1779d76
4f0cf80
741f256
a736ead
70cbff8
9716478
05c875c
0a757b6
d9bf5a9
f885575
87cfe87
33ac6c9
0d871b6
2fbc2fa
bbeb68a
11d9970
872f717
d85d84c
14dc54b
139db20
78bee3d
074483d
545f22d
0b31100
27b7c68
d80984e
ab098d9
2d5d246
dc547d6
e9ee86a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
For non-backfilled events, we already call
_notify_persisted_event
(just below) ->on_new_room_events
->notify_new_room_events
->notify_replication
Essentially, I want to fill in the context here: We never notify clients about backfilled events but it's important to let all the workers know about any new event (backfilled or not) because TODO
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.
"...they may need to act on that event type"?
One example is facilitating the Synapse Module API; where a module could be loaded on to any worker. A module may want to act on certain types of backfilled events arriving.
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.
@anoadragon453 Are you sure about this? I'm pretty sure the Synapse module
on_new_event
hook doesn't get called for backfilled events. At-least that's my assumption in the Synapse module I've been working on and I even have asserts for it that don't get triggered (which are stressed by some Complement tests doing federation things).But now I'm no longer confident in that assumption.
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 moved these tests from
tests/test_federation.py