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
Send to-device messages to application services #11215
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
7fbfedb
Add experimental config option to send to-device messages to AS's
anoadragon453 b7a44d4
Add a new ephemeral AS handler for to_device message edus
anoadragon453 78bd5ea
Allow setting/getting stream id per appservice for to-device messages
anoadragon453 7899f82
Add database method to fetch to-device messages by user_ids from db
anoadragon453 103f410
Add a to_device_stream_id column to the application_services_state table
anoadragon453 e914f1d
Add tests
anoadragon453 2930fe6
Changelog
anoadragon453 f65846b
Make msc2409_to_device_messages_enabled private; remove unnecessary c…
anoadragon453 ce020c3
Move stream filter back into AppserviceHandler
anoadragon453 8f1183c
Broaden type hints; update comment
anoadragon453 401cb2b
Deduplicate ephemeral events to send conditional
anoadragon453 179dd5a
_handle_to_device -> _get_to_device_messages
anoadragon453 8b0bbc1
Rename ApplicationServiceEphemeralEventsTestCase
anoadragon453 31c4b40
Rename user1, user2 in tests to something more useful
anoadragon453 bd9d963
Simplify registration of appservices in tests
anoadragon453 8f8226a
Fix existing unit tests
anoadragon453 b4a4b45
rename set_type_stream_id_for_appservice -> set_appservice_stream_typ…
anoadragon453 c691ef0
Add some FIXME comments
anoadragon453 7cf6ad9
Add comment on why we don't NOT NULL to_device_stream_id
anoadragon453 6d68b8a
Refactor and generalise the sending of arbitrary fields over AS trans…
anoadragon453 13b25cf
Fix tests to mock _TransactionController.send of ApplicationServiceSc…
anoadragon453 275e1e0
Add to-device messages as their own special section in AS txns
anoadragon453 403490d
Insert to-device messages into the new to-device part of AS txns
anoadragon453 385b3bf
Modify tests to handle new location of to-device messages in AS txns
anoadragon453 c0b157d
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/e2e…
anoadragon453 ba91438
Fix calls to create_appservice_txn in tests
anoadragon453 0685021
Update synapse/storage/schema/main/delta/65/06_msc2409_add_device_id_…
anoadragon453 e7f6732
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/e2e…
anoadragon453 3d1661f
rename recipient_user_id_device_id_to_messages -> recipient_device_to…
anoadragon453 0ac079b
lint
anoadragon453 822e92a
Refactor storage methods to retrieve to-device messages
anoadragon453 25488fa
Update old references to get_new_messages_for_device
anoadragon453 026cb8a
Don't query for to-device messages without a device
anoadragon453 1121674
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/e2e…
anoadragon453 8129657
Fix shape of simple_insert_many argument
anoadragon453 de48ab4
Only import MemoryReactor if type-checking in test_scheduler; fix old…
anoadragon453 d8b8f74
Update _txn function to match outer method name
anoadragon453 ced1314
Clarify users arg in _get_to_device_messages docstring
anoadragon453 c749fcb
assert stream_id returned by get_device_messages is as expected
anoadragon453 24512fb
Fix get_messages_for_device return type documentation
anoadragon453 24bc3c5
Clean up limit checking
anoadragon453 30b74a5
Move DB migration to schema v68
anoadragon453 80c3721
Accept iterables in enqueue_for_appservice
anoadragon453 3d8e50d
wording fixes
anoadragon453 50ebcb9
Apply suggestions from code review
anoadragon453 089e041
Only allow querying either a single device ID, or all device IDs of u…
anoadragon453 d06781e
Apply suggestions from code review
anoadragon453 c334eef
Require a user id/device id pair if passing 'limit'
anoadragon453 bf93ec4
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/e2e…
anoadragon453 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 @@ | ||
Add experimental support for sending to-device messages to application services, as specified by [MSC2409](https://github.com/matrix-org/matrix-doc/pull/2409). Disabled by default. | ||
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
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.
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.
Should we note the experimental configuration flag to enable this?