Skip to content

feat: say you are typing in Remotes from the API - #658

Merged
xHeaven merged 8 commits into
dev-null-sh:productionfrom
simonhamp:feat/api-remotes-typing
Oct 22, 2026
Merged

xHeaven merged 8 commits into
dev-null-sh:productionfrom
simonhamp:feat/api-remotes-typing

Conversation

@simonhamp

Copy link
Copy Markdown
Contributor

Lets the mobile app say the user is typing in Remotes, the way the web's composer pings while it has text. 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 against production. The other side, partner_typing and an org's typing, comes with the threads in #654.

Endpoints

Signed, 204, through the web's conversations limiter.

Request Does
PUT /api/v1/remotes/@{username}/typing Marks the user as typing to that person for 5 seconds
PUT /api/v1/remotes/orgs/{id}/typing Marks them as typing in the org for 5 seconds

The controllers and form requests are copies of the web's, and they use the web's UpdateConversationTyping, so nothing is stored beyond the 5-second cache key, and the key goes as soon as the user's message arrives. Telling someone the user hasn't talked to yet does nothing. It's a 404 while the user has Remotes off, across a block, and for an org they aren't in.

Worth knowing

The app pings at most every 3 seconds while its composer has text, like the web. That's about 20 requests a minute while typing, well inside the API's 120.

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,232 PHP tests at 100% coverage.

@simonhamp
simonhamp marked this pull request as ready for review October 20, 2026 00:16
@xHeaven
xHeaven merged commit ecd134b into dev-null-sh:production Oct 22, 2026
5 checks passed
@simonhamp
simonhamp deleted the feat/api-remotes-typing branch October 22, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants