From 7024ce3b8622c608721d43207575a42ab7d32d83 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 28 Nov 2022 15:27:22 +0100 Subject: [PATCH] Message: Show admin and owner marks (follow-up) (#2161) --- src/components/common/PrivateChatInfo.tsx | 35 +++++++++++++++++------ 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/components/common/PrivateChatInfo.tsx b/src/components/common/PrivateChatInfo.tsx index 43f518c56..f4db42fa0 100644 --- a/src/components/common/PrivateChatInfo.tsx +++ b/src/components/common/PrivateChatInfo.tsx @@ -139,6 +139,31 @@ const PrivateChatInfo: FC = ({ ? adminMember.customTitle || lang(adminMember.isOwner ? 'GroupInfo.LabelOwner' : 'GroupInfo.LabelAdmin') : undefined; + function renderNameTitle() { + if (customTitle) { + return ( +
+ + {customTitle && {customTitle}} +
+ ); + } + + return ( + + ); + } + return (
= ({ animationLevel={animationLevel} />
-
- - {customTitle && {customTitle}} -
+ {renderNameTitle()} {(status || (!isSavedMessages && !noStatusOrTyping)) && renderStatusOrTyping()}