We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3590c commit eab733cCopy full SHA for eab733c
web/flat-web/src/api-middleware/rtc/avatar.ts
@@ -57,8 +57,10 @@ export class RtcAvatar extends EventEmitter {
57
this.observeVolumeId = window.setInterval(this.checkVolume, 500);
58
}
59
60
- public destroy(): void {
+ public async destroy(): Promise<void> {
61
clearInterval(this.observeVolumeId);
62
+ await this.setMic(false);
63
+ await this.setCamera(false);
64
this.rtc.removeAvatar(this);
65
66
0 commit comments