From 6c053dd25176aa374280e51e114eef3a9194d78f Mon Sep 17 00:00:00 2001 From: Mikhail Rogachev Date: Fri, 31 May 2024 18:44:21 +0200 Subject: [PATCH] hotfix: use canPost and canView from chat in case of a new channel (#15003) --- src/app/modules/main/chat_section/module.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/modules/main/chat_section/module.nim b/src/app/modules/main/chat_section/module.nim index cdb163cccd..254dd2e3a9 100644 --- a/src/app/modules/main/chat_section/module.nim +++ b/src/app/modules/main/chat_section/module.nim @@ -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