fix: Broken voice states and connectivity drops
This commit is contained in:
@@ -134,6 +134,15 @@ export class InviteComponent implements OnInit {
|
||||
sourceId: context.endpoint.id,
|
||||
sourceUrl: context.sourceUrl
|
||||
}));
|
||||
const resolvedSource = this.serverDirectory.normaliseRoomSignalSource({
|
||||
sourceId: joinResponse.server.sourceId ?? context.endpoint.id,
|
||||
sourceName: joinResponse.server.sourceName ?? context.endpoint.name,
|
||||
sourceUrl: joinResponse.server.sourceUrl ?? context.sourceUrl,
|
||||
signalingUrl: joinResponse.signalingUrl,
|
||||
fallbackName: joinResponse.server.sourceName ?? context.endpoint.name ?? invite.server.name
|
||||
}, {
|
||||
ensureEndpoint: true
|
||||
});
|
||||
|
||||
this.store.dispatch(
|
||||
RoomsActions.joinRoom({
|
||||
@@ -145,9 +154,8 @@ export class InviteComponent implements OnInit {
|
||||
Array.isArray(joinResponse.server.channels) && joinResponse.server.channels.length > 0
|
||||
? joinResponse.server.channels
|
||||
: invite.server.channels,
|
||||
sourceId: context.endpoint.id,
|
||||
sourceName: context.endpoint.name,
|
||||
sourceUrl: context.sourceUrl
|
||||
...resolvedSource,
|
||||
signalingUrl: joinResponse.signalingUrl
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user