Repository navigation
feat: react to messages in Remotes from the API - #656
Merged
xHeaven merged 3 commits intoOct 22, 2026
Merged
Conversation
simonhamp
marked this pull request as ready for review
October 19, 2026 23:45
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Lets the mobile app react to messages in Remotes, the way the web's reaction tray and chips do. It's one of a few small PRs that bring Remotes to the app (NativePHP/dev-null-app) on top of the signed API from #130. It stands alone: it only needs a message id, which the conversations PR (#654) hands out.
Endpoints
All signed. They go through the web's
conversationslimiter (300 a minute).GET /api/v1/remotes/reactions{"usage": [{"emoji", "count"}]}, the user's emoji, most used firstPOST /api/v1/remotes/messages/{id}/reactionswithemoji{"reactions": [{"user_id", "emoji"}]}, in the order they were leftDELETE /api/v1/remotes/messages/{id}/reactionswithemojiRules kept from the web
The form requests are copies of the web's, and the actions and
ReactionUsageQueryare the web's own.404).403with the web's message.404while the user has Remotes off, or across a block.Reacting bumps the conversation's
reactions_version, as on the web, so the other person's poll picks the change up.Testing
Everything CI runs passes on this branch locally: Pint, Rector, the JS lint, PHPStan, tsc, type coverage, the JS unit tests, and all 3,242 PHP tests at 100% coverage.