Skip to content

Listen to user status events to update the status on avatars#1405

Merged
marcoambrosini merged 1 commit into
masterfrom
bugfix/noid/listen-to-user-status-events
Sep 17, 2020
Merged

Listen to user status events to update the status on avatars#1405
marcoambrosini merged 1 commit into
masterfrom
bugfix/noid/listen-to-user-status-events

Conversation

@nickvergessen

Copy link
Copy Markdown
Contributor

Steps

  1. Go to any page that uses the Avatar component to show your own avatar, e.g. a Talk conversation participant tab
  2. Change your status
  3. Wait until your avatar shows the new status ☠️

Relevant event is emitted in server:
nextcloud/server#22801

I kept the event neutral from getCurrentUser so it will automatically update statuses of other users when e.g. Talk emits their status updates in the future (since it fetches it with the 30s participant list update it makes sense)

Signed-off-by: Joas Schilling <coding@schilljs.com>

@marcoambrosini marcoambrosini left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!

@marcoambrosini marcoambrosini merged commit 30bacfb into master Sep 17, 2020
@marcoambrosini marcoambrosini deleted the bugfix/noid/listen-to-user-status-events branch September 17, 2020 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: avatar Related to the avatar component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants