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

feat: Update user list on guest user events #45869

Closed
wants to merge 1 commit into from

Conversation

Pytal
Copy link
Member

@Pytal Pytal commented Jun 14, 2024

Summary

Needed to update the user list without a page reload

Checklist

@Pytal Pytal added this to the Nextcloud 30 milestone Jun 14, 2024
@Pytal Pytal requested review from susnux, artonge and Fenn-CS June 14, 2024 00:13
@Pytal Pytal self-assigned this Jun 14, 2024
Comment on lines +281 to +282
subscribe('guests:user:deleted', (userId) => this.$store.commit('deleteUser', userId))
subscribe('guests:user:created', (userId) => this.$store.dispatch('addUserData', userId))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we really listen to external app even in server? Can't we emit a generic event from the guest app?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, something like nextcloud:user:created?

@Pytal Pytal closed this Jul 12, 2024
@Pytal Pytal deleted the feat/update-user-list branch July 12, 2024 19:18
@skjnldsv skjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants