-
Notifications
You must be signed in to change notification settings - Fork 449
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
fix(participants): cancel scheduled request when requesting new one #11064
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand the created() etc, so just to make sure because the title implies so:
When an update is scheduled, we should block scheduling new ones. If you cancel the schedule and schedule a new one, we will in worst case never update the list as there is a change all the time within the 15 seconds.
That's why debounce is used. But slow and fast debounced methods have different contexts, unfortunately
Fair point. Then we could do it this way (dropping the parallel schedule only): if (this.$store.getters.windowIsVisible()
&& (this.isInCall || !this.conversation?.hasCall)) {
this.debounceSlowUpdateParticipants.clear()
this.debounceFastUpdateParticipants()
} else {
this.debounceFastUpdateParticipants.clear()
this.debounceSlowUpdateParticipants()
} Then:
|
Webinar with 400 people... someone will always leave, someone will always join |
participant updates 'scheduling' depends only on yourself ( P.S. there is also an option |
Yeah, this will only speed up the excecution but without blocking the second request
aa right, I think it can be a non-edge case (user switching between tabs while in call multiple times). PS: it's never too late for using ✨ flags ✨ |
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
7cd9746
to
4ba284d
Compare
Nailed it. Moved cancellation from Explanation:
Same for calling 'fast', but as they have different context, they working in parallel. |
/backport to stable28 |
☑️ Resolves
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🚧 Tasks
Patch for testing:
🏁 Checklist