fix(chat): Fix checking admin privilages

Closes: #6003
This commit is contained in:
Boris Melnik 2022-06-14 16:24:54 +03:00 committed by Iuri Matias
parent a9dabe5df9
commit c754cf1aaa
1 changed files with 1 additions and 2 deletions

View File

@ -146,8 +146,7 @@ proc buildChatSectionUI(
colorHash = self.controller.getColorHash(chatDto.id)
colorId = self.controller.getColorId(chatDto.id)
let amIChatAdmin = self.amIMarkedAsAdminUser(chatDto.members)
let amIChatAdmin = (self.amIMarkedAsAdminUser(chatDto.members) or channelGroup.admin)
let channelItem = initItem(chatDto.id, chatName, chatImage, chatDto.color,
chatDto.emoji, chatDto.description, chatDto.chatType.int, amIChatAdmin, hasNotification,
notificationsCount, chatDto.muted, blocked, chatDto.active, chatDto.position,