diff --git a/src/global/reducers/chats.ts b/src/global/reducers/chats.ts index 20495790b..f13cfb08c 100644 --- a/src/global/reducers/chats.ts +++ b/src/global/reducers/chats.ts @@ -255,11 +255,13 @@ export function addChatMembers(global: T, chat: ApiChat, return global; } + const adminMembers = updatedMembers.filter(({ isAdmin, isOwner }) => isAdmin || isOwner); + return updateChat(global, chat.id, { fullInfo: { ...chat.fullInfo, members: updatedMembers, - adminMembersById: buildCollectionByKey(updatedMembers, 'userId'), + adminMembersById: buildCollectionByKey(adminMembers, 'userId'), }, }); }