Presence Management - user status
See original GitHub issueAPI and documentation
https://matrix.org/docs/spec/client_server/latest#id62
Change SDK side
- Create a PresenceService
- Implement an API in PresenceService to set the status of the current user using https://matrix.org/docs/spec/client_server/latest#put-matrix-client-r0-presence-userid-status
- Implement an API in PresenceService to retrieve the status of any user using https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-presence-userid-status
- Handle the presence update from the sync response (see https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-sync):
"presence": {
"events": [
{
"content": {
"avatar_url": "mxc://localhost:wefuiwegh8742w",
"last_active_ago": 2478593,
"presence": "online",
"currently_active": false,
"status_msg": "Making cupcakes"
},
"type": "m.presence",
"sender": "@example:localhost"
}
]
},
- See how those data ^ can be stored in the session DB to be kept up to date. Probably a new Entity will have to be created (to be discussed)
Change application side
- Integrate the design update regarding presence: list of impacted screens to be defined
Presence supports by the homeserver
Note that matrix.org has disabled the presence management for performance reason. We should avoid displaying (wrong) presence information if it’s disabled on the homeserver, and we will be able to know that with https://github.com/matrix-org/matrix-doc/pull/1862
- In the mean time, we can use the local config to disable presence locally, based on the user homeserver URL as per https://github.com/vector-im/element-web/blob/develop/element.io/app/config.json#L28. The config file on Element Android is here
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:7 (1 by maintainers)
Top Results From Across the Web
User presence in Teams - Microsoft Learn
Presence indicates the user's current availability and status to other users. ... Admin settings in Teams compared to Skype for Business.
Read more >Give Users Access to Presence Statuses with Profiles
Presence statuses indicate whether an agent is online and available to receive incoming work items, or whether the agent is away or offline....
Read more >What is User Presence? And Why is it Important? - PubNub
At its most simple, presence is the representation of a user's online or offline status. It can apply to specific users (accounts), or...
Read more >User Presence Indicator - ServiceNow Docs
User presence indicator helps the agents to know the status of the users in Microsoft Teams before the agent can initiate a chat...
Read more >Setup User Presence - RingCentral Support
Presence-capable phones have status indicator lights which allow the Admins and Users assigned with administrative permission to see who is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So does closing this ticket mean Presence in Element is going to be coming back now or what? @ariskotsomitopoulos
@croulibri that function is definitely absent in Element/RiotX, imo it should replace the verified shield in the DM list, showing offline/online/etc, and having the E2EE shield be at the top bar of the conversation detail instead