forked from matrix-org/synapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Beeper preview query to correctly handle edit events (matrix-o…
…rg#56) * Update Beeper preview query to correctly handle edit events We first want to ignore edit events from potential preview events as these often replace events further back in history but come mots recent on order. We then do a second join for edit events that replace the selected (non edit) preview event, and use where present, meaning edits on the latest preview event show correctly. * Rewrite preview query edit handling * Fix join events w/relations * Add preview edits test case * Expand preview edit test to cover multiple edits * Only generate previews if we have timeline events * Remove cache on preview generation Points towards there still being cache invalidation races somewhere... Co-authored-by: Brad Murray <[email protected]>
- Loading branch information
1 parent
3500b6f
commit 1720967
Showing
4 changed files
with
129 additions
and
40 deletions.
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