matrix-org / matrix-org/matrix-js-sdk
set_presence option in startClient method
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 704
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 40
Description
How can I use set_presence option when I use startClient method, since when the /sync endpoint is called the client is automatically marked as online unless that the set_presence option is passed as false.
set_presence option in /sync
Controls whether the client is automatically marked as online by polling this API. If this parameter is omitted then the client is automatically marked as online when it uses this API. Otherwise if the parameter is set to "offline" then the client is not marked as being online when it uses this API.
Contributor guide
Research direction
Start by tracing the startClient method and the /sync request path to see how options are passed. Determine whether set_presence should be accepted by startClient and how its behavior can be verified; done means the requested option is usable there and the resulting presence behavior is confirmed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100