feat: clear voiceWs on all voice leave paths

This commit is contained in:
Jannis Braun
2026-03-23 14:27:42 +01:00
parent cc10876b93
commit 319832ebc8
2 changed files with 16 additions and 1 deletions
+2
View File
@@ -165,6 +165,7 @@ class ConnectionManager {
// Leave voice room if in one (handles both space and DM rooms)
const left = this.leaveCurrentRoom(userId);
this.clearVoiceUserStatus(userId);
this.voiceWs.delete(userId);
if (left) {
if (left.room.roomType === 'space') {
const meta = left.room.metadata as SpaceRoomMeta;
@@ -648,6 +649,7 @@ class ConnectionManager {
// Leave voice room if in one
const left = this.leaveCurrentRoom(userId);
this.clearVoiceUserStatus(userId);
this.voiceWs.delete(userId);
if (left) {
if (left.room.roomType === 'space') {
const meta = left.room.metadata as SpaceRoomMeta;