From 1997aa1d5a429229d20ab9764f30af2b5cb71450 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Thu, 15 Jul 2021 21:50:16 +0300 Subject: [PATCH] Profile: Show either link or username (#1278) --- src/components/right/ChatExtra.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/right/ChatExtra.tsx b/src/components/right/ChatExtra.tsx index 7cfe440b6..4101bd5db 100644 --- a/src/components/right/ChatExtra.tsx +++ b/src/components/right/ChatExtra.tsx @@ -139,7 +139,7 @@ export default memo(withGlobal( const user = isChatPrivate(chatOrUserId) ? selectUser(global, chatOrUserId) : undefined; const isMuted = chat && selectIsChatMuted(chat, selectNotifySettings(global), selectNotifyExceptions(global)); - const canInviteUsers = chat && ( + const canInviteUsers = chat && !user && ( (!isChatChannel(chat) && !isUserRightBanned(chat, 'inviteUsers')) || getHasAdminRight(chat, 'inviteUsers') );