This repository was 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
Implement changes to MSC2285 (hidden read receipts) #12168
Merged
clokep
merged 58 commits into
matrix-org:develop
from
SimonBrandner:feature/private-read-receipts
May 4, 2022
Merged
Changes from 47 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
bc2a3db
Changelog
SimonBrandner 926bd84
Implement changes to MSC2285
SimonBrandner 4bf0a36
Improve tests
SimonBrandner b4e6eea
Add checks for `msc2285_enabled`
SimonBrandner 18a96d2
Simplifie `filter_out_hidden()`
SimonBrandner 6d017ce
Don't recheck `msc2285_enabled`
SimonBrandner 77879c0
Add some comments
SimonBrandner c574c86
Add a comment regarding `parse_json_object_from_request()`
SimonBrandner 5f1a963
Make handling of multiple receipt types sound
SimonBrandner a7845c5
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner bce411c
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 533421c
Simplifie code
SimonBrandner d060e12
Only handle `m.read.private` if MSC enabled
SimonBrandner c73005f
Use f-strings
SimonBrandner 100120f
Make things more readable - don't use "reverse"
SimonBrandner 3527966
Remove `test_does_not_filter_out_our_hidden_receipt()` as `test_leave…
SimonBrandner 1d7e274
Test that the read receipt doesn't go up for either receipt type
SimonBrandner 26aae3e
Test that we can't override private read receipts
SimonBrandner 245b723
Make sure read receipts don't go up
SimonBrandner 5732c35
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner d4a2d85
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner fd277aa
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 3713dcd
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 38db694
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 678adcd
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 2044845
Fix tests
SimonBrandner 21754ea
Simplify code and improve comment
SimonBrandner 7aca89c
Use `parameterized` instead of a for loop
SimonBrandner 88f47b6
Delint
SimonBrandner ac3c0ea
Throw when receipt type is not known
SimonBrandner 85aa704
Replace `_check_no_room_changes()`
SimonBrandner f837981
Test receipt overriding
SimonBrandner cc3e273
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 21ac95e
Support specifying the receipt types we want
SimonBrandner 373f0b7
Improve `SlavedReceiptTestCase`
SimonBrandner 2c8c550
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 455d500
Use `GROUP BY`
SimonBrandner 90ea618
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 809596a
Use `ORDER BY` and `LIMIT`
SimonBrandner 2e198fe
Fix `GROUP BY` error?
SimonBrandner 958ff56
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 116d1c9
Make `get_receipts_for_user_with_orderings()` handle multiple receipt…
SimonBrandner 7c22108
Be smarter when handling non-allowed keys
SimonBrandner 0f117e4
Fix types
SimonBrandner 084b7ce
Fix types (again)
SimonBrandner 2da9935
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 91a4bf1
Fix typo
SimonBrandner d48fc99
Merge remote-tracking branch 'origin/develop' into feature/private-re…
clokep ae0bf97
Add some notes.
clokep 4e255a6
Add caching back to get_last_receipt_event_id_for_user.
clokep e9055ac
Add caching back to get_latest_receipts_for_user.
clokep 8041f82
Rename get_latest_receipts_for_user back to get_receipts_for_user to …
clokep 25632cf
Merge remote-tracking branch 'origin/develop' into feature/private-re…
clokep 670e3e4
Improve docstrings.
clokep 9e60cdb
Document behavior of ordering of receipt types mattering.
clokep 10822e1
Minor refactoring.
clokep 40782b8
Fix comment
SimonBrandner 1b3987e
Merge remote-tracking branch 'upstream/develop' into feature/private-…
SimonBrandner 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 hidden or 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 @@ | ||
Implement [changes](https://github.com/matrix-org/matrix-spec-proposals/pull/2285/commits/4a77139249c2e830aec3c7d6bd5501a514d1cc27) to [MSC2285 (hidden read receipts)](https://github.com/matrix-org/matrix-spec-proposals/pull/2285). Contributed by @SimonBrandner. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.