hotfix: use canPost and canView from chat in case of a new channel (#15003)

This commit is contained in:
Mikhail Rogachev 2024-05-31 18:44:21 +02:00 committed by GitHub
parent c53c8bb08a
commit 6c053dd251
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -710,6 +710,8 @@ proc getChatItemFromChatDto(
hideIfPermissionsNotMet = communityChat.hideIfPermissionsNotMet
viewersCanPostReactions = communityChat.viewersCanPostReactions
else:
canPost = chatDto.canPost
canView = chatDto.canView
canPostReactions = chatDto.canPostReactions
hideIfPermissionsNotMet = chatDto.hideIfPermissionsNotMet
viewersCanPostReactions = chatDto.viewersCanPostReactions