Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 935fa91

Browse files
committed
Fix tests, again
Signed-off-by: Robin Townsend <[email protected]>
1 parent 7ea0496 commit 935fa91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stores/VoiceChannelStore.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,15 @@ export default class VoiceChannelStore extends EventEmitter {
198198
this.activeChannel.off(`action:${ElementWidgetActions.MuteVideo}`, this.onMuteVideo);
199199
this.activeChannel.off(`action:${ElementWidgetActions.UnmuteVideo}`, this.onUnmuteVideo);
200200

201-
this.activeChannel = null;
202201
this._roomId = null;
203202
this._participants = null;
204203
this._audioMuted = null;
205204
this._videoMuted = null;
206205

207206
this.emit(VoiceChannelEvent.Disconnect);
208207
this.ack(ev);
208+
// Save this for last, since ack needs activeChannel to exist
209+
this.activeChannel = null;
209210
};
210211

211212
private onParticipants = (ev: CustomEvent<IWidgetApiRequest>) => {

0 commit comments

Comments
 (0)