fix: multiple bug fixes
isolated users, db backup, weird disconnect issues for long voice sessions,
This commit is contained in:
@@ -48,6 +48,7 @@ import {
|
||||
buildKnownUserExtras,
|
||||
isWrongServer,
|
||||
resolveRoom,
|
||||
reconcileRoomSnapshotChannels,
|
||||
sanitizeRoomSnapshot,
|
||||
normalizeIncomingBans,
|
||||
getPersistedCurrentUserId
|
||||
@@ -122,7 +123,8 @@ export class RoomStateSyncEffects {
|
||||
const actions: Action[] = [
|
||||
UsersActions.syncServerPresence({
|
||||
roomId: signalingMessage.serverId,
|
||||
users: syncedUsers
|
||||
users: syncedUsers,
|
||||
connectedPeerIds: this.webrtc.getConnectedPeers()
|
||||
})
|
||||
];
|
||||
|
||||
@@ -641,7 +643,10 @@ export class RoomStateSyncEffects {
|
||||
if (!room || !incomingRoom)
|
||||
return EMPTY;
|
||||
|
||||
const roomChanges = sanitizeRoomSnapshot(incomingRoom);
|
||||
const roomChanges = {
|
||||
...sanitizeRoomSnapshot(incomingRoom),
|
||||
channels: reconcileRoomSnapshotChannels(room.channels, incomingRoom.channels)
|
||||
};
|
||||
const bans = normalizeIncomingBans(room.id, event.bans);
|
||||
|
||||
return this.syncBansToLocalRoom(room.id, bans).pipe(
|
||||
|
||||
Reference in New Issue
Block a user