Fix speaking data taking 10 seconds to be available

This commit is contained in:
Robin 2024-05-02 15:59:40 -04:00
parent c5e60744a2
commit 705f9daf5f

View File

@ -167,9 +167,12 @@ class UserMedia {
audit((s) =>
merge(
timer(s ? 1000 : 10000),
// If the speaking flag resets to its original value during this time,
// end the silencing window to stick with that original value
this.vm.speaking.pipe(filter((s1) => s1 !== s)),
),
),
startWith(false),
distinctUntilChanged(),
this.scope.bind(),
// Make this Observable hot so that the timers don't reset when you