fix wrong avatar for community channels in topbar (#20093)
This commit is contained in:
parent
eb1db20161
commit
8038fc5ceb
|
@ -50,18 +50,26 @@
|
||||||
messages.constants/top-bar-height
|
messages.constants/top-bar-height
|
||||||
(if platform/ios?
|
(if platform/ios?
|
||||||
messages.constants/content-animation-start-position-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
|
[reanimated/view
|
||||||
{:style (style/header-content-container header-opacity header-position)}
|
{: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
|
[quo/group-avatar
|
||||||
{:customization-color color
|
{:customization-color color
|
||||||
:size :size-32
|
:size :size-32
|
||||||
:picture photo-path
|
:picture photo-path
|
||||||
:override-theme :dark
|
|
||||||
:emoji (when-not (string/blank? emoji)
|
|
||||||
(string/trim emoji))
|
|
||||||
:chat-name chat-name}]
|
:chat-name chat-name}]
|
||||||
|
|
||||||
|
:else
|
||||||
[quo/user-avatar
|
[quo/user-avatar
|
||||||
{:full-name display-name
|
{:full-name display-name
|
||||||
:online? online?
|
:online? online?
|
||||||
|
|
Loading…
Reference in New Issue