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
Draft: Add support for MSC2716 marker events #10420
Closed
MadLittleMods
wants to merge
45
commits into
madlittlemods/2716-backfill-historical-events-for-federation
from
madlittlemods/2716-marker-events
Closed
Changes from 3 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
164e32b
Add support for MSC2716 marker events
MadLittleMods 435f074
Process markers when we receive it over federation
MadLittleMods e0e1bd0
WIP: make hs2 backfill historical messages after marker event
MadLittleMods d63c34c
hs2 to better ask for insertion event extremity
MadLittleMods 2196ba5
Add insertion_event_extremities table
MadLittleMods 8ebbc5f
Merge branch 'madlittlemods/2716-backfill-historical-events-for-feder…
MadLittleMods 187ab28
Messy: Fix undefined state_group for federated historical events
MadLittleMods 9d70e95
Revert "Messy: Fix undefined state_group for federated historical eve…
MadLittleMods 7da24b9
Always send device_one_time_keys_count (#10457)
dbkr 283bb5c
1.38.1
erikjohnston 4565063
Merge commit '7da24b975dfb10c277cf963dfddb88f55b1ca598' into release-…
erikjohnston f76f8c1
1.39.0rc2
erikjohnston 4c3fdfc
Fix an error in the docker workflow (#10461)
richvdh 016f085
Merge tag 'v1.38.1'
richvdh 347a3e1
Merge branch 'madlittlemods/2716-backfill-historical-events-for-feder…
MadLittleMods 683deee
Merge branch 'master' into develop
erikjohnston c39a417
Merge tag 'v1.39.0rc2' into develop
erikjohnston 6e22756
Merge tag 'v1.38.1' into release-v1.39
erikjohnston ab82fd6
Merge branch 'release-v1.39' into develop
erikjohnston f22252d
Enable docker image caching for the deb build (#10431)
richvdh 4fb92d9
Add type hints to synapse.federation.transport.client. (#10408)
clokep 228decf
Update the MSC3083 support to verify if joins are from an authorized …
clokep b7186c6
Add type hints to state handler. (#10482)
clokep b3a757e
Support MSC2033: Device ID on whoami (#9918)
turt2live 92a8822
Change release script to update debian changelog for RCs (#10465)
erikjohnston 2476d53
Mitigate media repo XSSs on IE11. (#10468)
dkasak 1394467
Use new go test running syntax for complement. (#10488)
clokep e16eab2
Add a PeriodicallyFlushingMemoryHandler to prevent logging silence (#…
reivilibre 74d09a4
Always communicate device OTK counts to clients (#10485)
anoadragon453 10dcfae
Fix typo that causes R30v2 to actually be old R30 (#10486)
reivilibre 31c6b30
Fix import of the default SAML mapping provider. (#10477)
jaywink 076dead
allow specifying https:// proxy (#10411)
dklimpel 5b22d5e
Fix `oldest_pdu_in_federation_staging` (#10455)
erikjohnston 8e1febc
Support underscores (in addition to hyphens) for charset detection. (…
srividyut 0489683
Document Complement dev usage (#10483)
MadLittleMods c3b0377
Support for MSC2285 (hidden read receipts) (#10413)
SimonBrandner 752fe0c
Restricted rooms (MSC3083) should not have their allow key redacted. …
clokep 9643dfd
improve typing annotations in CachedCall (#10450)
richvdh d9cb658
Fix up type hints for Twisted 21.7 (#10490)
richvdh 5146e19
1.39.0rc3
erikjohnston 2254e67
Fixup changelog
erikjohnston 8c201c9
Merge tag 'v1.39.0rc3' into develop
erikjohnston d0b294a
Make historical events discoverable from backfill for servers without…
MadLittleMods 858363d
Generics for `ObservableDeferred` (#10491)
richvdh 97fb158
Merge branch 'develop' into madlittlemods/2716-marker-events
MadLittleMods 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
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
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 |
---|---|---|
|
@@ -366,13 +366,21 @@ def check_event_is_visible(event: EventBase, state: StateMap[EventBase]) -> bool | |
if erased_senders: | ||
to_return = [] | ||
for e in events: | ||
if not is_sender_erased(e, erased_senders): | ||
erased = is_sender_erased(e, erased_senders) | ||
logger.info( | ||
"filter_events_for_server: (all_open) %s erased=%s", e, erased | ||
) | ||
if not erased: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: can revert |
||
to_return.append(e) | ||
elif redact: | ||
to_return.append(prune_event(e)) | ||
|
||
logger.info("filter_events_for_server: (all_open) to_return=%s", to_return) | ||
return to_return | ||
|
||
logger.info( | ||
"filter_events_for_server: all_open and no erased senders %s", events | ||
) | ||
# If there are no erased users then we can just return the given list | ||
# of events without having to copy it. | ||
return events | ||
|
@@ -429,6 +437,9 @@ def include(typ, state_key): | |
for e in events: | ||
erased = is_sender_erased(e, erased_senders) | ||
visible = check_event_is_visible(e, event_to_state[e.event_id]) | ||
logger.info( | ||
"filter_events_for_server: %s erased=%s visible=%s", e, erased, visible | ||
) | ||
if visible and not erased: | ||
to_return.append(e) | ||
elif redact: | ||
|
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.
Unrelated to the PR but just want to better clarify why we skip outliers in this step. Any insight here?