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()}