Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

nickvergessen
Copy link
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>
Copy link
Contributor

@marcoambrosini marcoambrosini left a comment

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