diff --git a/src/global/reducers/chats.ts b/src/global/reducers/chats.ts index ffc2fa865..505f097b7 100644 --- a/src/global/reducers/chats.ts +++ b/src/global/reducers/chats.ts @@ -141,6 +141,11 @@ export function addChats(global: T, newById: Record>((acc, id) => { + const existingChat = byId[id]; + if (existingChat && !existingChat.isMin) { + return acc; + } + const updatedChat = getUpdatedChat(global, id, newById[id]); if (updatedChat) { acc[id] = updatedChat; @@ -148,6 +153,7 @@ export function addChats(global: T, newById: Record(global: T, newById: Record>((acc, id) => { + const existingUser = byId[id]; + if (existingUser && !existingUser.isMin) { + return acc; + } + const updatedUser = getUpdatedUser(global, id, newById[id]); if (updatedUser) { acc[id] = updatedUser; @@ -90,6 +95,7 @@ export function addUsers(global: T, newById: Record