mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 09:37:59 +00:00
parent
086e05cec3
commit
348024c17e
@ -583,6 +583,9 @@ method addNewChat*(
|
||||
chatImage = chatDto.icon
|
||||
|
||||
var amIChatAdmin = self.amIMarkedAsAdminUser(chatDto.members)
|
||||
if not amIChatAdmin and len(chatDto.communityId) != 0:
|
||||
let community = communityService.getCommunityById(chatDto.communityId)
|
||||
amIChatAdmin = amIChatAdmin or community.admin
|
||||
if chatDto.chatType != ChatType.PrivateGroupChat:
|
||||
amIChatAdmin = amIChatAdmin or channelGroup.admin
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user