From 8038fc5ceb92791f40c282c6f50b5c1cffd3c68c Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Mon, 20 May 2024 14:25:37 +0530 Subject: [PATCH] fix wrong avatar for community channels in topbar (#20093) --- .../messenger/messages/navigation/view.cljs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/status_im/contexts/chat/messenger/messages/navigation/view.cljs b/src/status_im/contexts/chat/messenger/messages/navigation/view.cljs index 3079f70a7a..5dd24400a0 100644 --- a/src/status_im/contexts/chat/messenger/messages/navigation/view.cljs +++ b/src/status_im/contexts/chat/messenger/messages/navigation/view.cljs @@ -50,18 +50,26 @@ messages.constants/top-bar-height (if platform/ios? messages.constants/content-animation-start-position-ios - messages.constants/content-animation-start-position-android))] + messages.constants/content-animation-start-position-android)) + community-channel? (= chat-type constants/community-chat-type)] [reanimated/view {:style (style/header-content-container header-opacity header-position)} - (if group-chat + (cond + community-channel? + [quo/channel-avatar + {:size :size-32 + :full-name chat-name + :customization-color color + :emoji (when-not (string/blank? emoji) + (string/trim emoji))}] + group-chat [quo/group-avatar {:customization-color color :size :size-32 :picture photo-path - :override-theme :dark - :emoji (when-not (string/blank? emoji) - (string/trim emoji)) :chat-name chat-name}] + + :else [quo/user-avatar {:full-name display-name :online? online?