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

Always keep session member view up-to-date #40

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

msujew
Copy link
Collaborator

@msujew msujew commented Jul 12, 2024

Closes #36

This fixes the issue of missing users in the session view. The main issue was that we didn't call onDidUsersChange in our collaboration instance on a few of the peer related requests. Especially important is the peer/init notification: Upon joining a room their view was empty - only after another user joins would their view get populated. Now the view is populated instantly.

@msujew msujew added the vscode Issues related to the VS Code extension label Jul 12, 2024
Copy link
Contributor

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

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

Thanks! It works well as a host. It does not work for me as guest when I test the PR on Gitpod. The view remains empty and I see an error "Element with id LvWgdVPEMaLQfis8l9H5T_mX is already registered" shown in the UI.

@jonah-iden
Copy link
Contributor

jonah-iden commented Jul 18, 2024

Weirdly enough it worked fine yesterday but today i had the same problem as Miro. Seems like in this case when you are the host you are not in the list of peers in the collaboration instance. But when you are joining a session you are. Also on host side i only see the joined user and not myself as if in that case the host is not adding itself to the list.
No Idea why both sides worked fine yesterday. Maybe some build/install problem

@msujew
Copy link
Collaborator Author

msujew commented Nov 18, 2024

@jonah-iden I've updated the PR some time ago. Please have another look if you some time.

Copy link
Contributor

@jonah-iden jonah-iden left a comment

Choose a reason for hiding this comment

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

Seems to work great now. Sorry for the wait.

@msujew msujew merged commit 596ca0c into main Nov 19, 2024
4 checks passed
@msujew msujew deleted the msujew/fix-session-member-view branch November 19, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode Issues related to the VS Code extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collaboration session view is sometimes incomplete
3 participants