matrix-org / matrix-org/matrix-js-sdk

set_presence option in startClient method

Open
#398 0 comments 0 reactions 0 assignees View on GitHub
Easy Help Wanted T-Enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.