fix: Broken voice states and connectivity drops
This commit is contained in:
@@ -283,7 +283,8 @@ export class SignalingManager {
|
||||
if (credentials) {
|
||||
this.sendRawMessage({ type: SIGNALING_TYPE_IDENTIFY,
|
||||
oderId: credentials.oderId,
|
||||
displayName: credentials.displayName });
|
||||
displayName: credentials.displayName,
|
||||
connectionScope: this.lastSignalingUrl ?? undefined });
|
||||
}
|
||||
|
||||
const memberIds = this.getMemberServerIds();
|
||||
@@ -296,17 +297,10 @@ export class SignalingManager {
|
||||
|
||||
const lastJoined = this.getLastJoinedServer();
|
||||
|
||||
if (lastJoined) {
|
||||
if (lastJoined && memberIds.has(lastJoined.serverId)) {
|
||||
this.sendRawMessage({ type: SIGNALING_TYPE_VIEW_SERVER,
|
||||
serverId: lastJoined.serverId });
|
||||
}
|
||||
} else {
|
||||
const lastJoined = this.getLastJoinedServer();
|
||||
|
||||
if (lastJoined) {
|
||||
this.sendRawMessage({ type: SIGNALING_TYPE_JOIN_SERVER,
|
||||
serverId: lastJoined.serverId });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user