-
Notifications
You must be signed in to change notification settings - Fork 186
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
Allow reaction to non sent Event (local echo for reaction) #3348
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
75e7668
to
ac2c1f9
Compare
ac2c1f9
to
ab184cb
Compare
|
Also the SDK will manage local echo for reactions.
@@ -155,7 +156,7 @@ interface MatrixRoom : Closeable { | |||
|
|||
suspend fun sendFile(file: File, fileInfo: FileInfo, progressCallback: ProgressCallback?): Result<MediaUploadHandler> | |||
|
|||
suspend fun toggleReaction(emoji: String, eventId: EventId): Result<Unit> | |||
suspend fun toggleReaction(emoji: String, uniqueId: UniqueId): Result<Unit> |
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.
UniqueId
is useful here (for instance) to avoid having 2 Strings as parameter.
The branch has been merged to another one and is now in this PR: #3384. |
Content
Add support for local echo reaction. This is mainly allowing reaction to be added on non-sent event.
First commit introduce
UniqueId
value class, I recommend to review commit per commit.Need matrix-org/matrix-rust-sdk#3749
Motivation and context
Improve reaction feature.
Screenshots / GIFs
Tests
There is a limitation described here which will may be fixed SDK side (the PR is not merged yet).
Tested devices
Checklist