diff --git a/ts/components/session/conversation/SessionRightPanel.tsx b/ts/components/session/conversation/SessionRightPanel.tsx index 33bf1e699..192e29534 100644 --- a/ts/components/session/conversation/SessionRightPanel.tsx +++ b/ts/components/session/conversation/SessionRightPanel.tsx @@ -122,7 +122,7 @@ const HeaderItem = () => { avatarPath, isPublic, id, - weAreAdmin, + isGroup, isKickedFromGroup, profileName, phoneNumber, @@ -131,7 +131,7 @@ const HeaderItem = () => { name, } = selectedConversation; - const showInviteContacts = (isPublic || weAreAdmin) && !isKickedFromGroup && !isBlocked && !left; + const showInviteContacts = isGroup && !isKickedFromGroup && !isBlocked && !left; const userName = name || profileName || phoneNumber; return ( @@ -249,9 +249,9 @@ export const SessionRightPanelWithDetails = () => { }; }); - const showUpdateGroupNameButton = weAreAdmin && !commonNoShow; + const showUpdateGroupNameButton = + isGroup && (!isPublic || (isPublic && weAreAdmin)) && !commonNoShow; const showAddRemoveModeratorsButton = weAreAdmin && !commonNoShow && isPublic; - const showUpdateGroupMembersButton = !isPublic && isGroup && !commonNoShow; const deleteConvoAction = isPublic diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts index d28515b14..998e0c9cb 100644 --- a/ts/models/conversation.ts +++ b/ts/models/conversation.ts @@ -1114,7 +1114,7 @@ export class ConversationModel extends Backbone.Model { } public isAdmin(pubKey?: string) { - if (!this.isPublic()) { + if (!this.isPublic() && !this.isGroup()) { return false; } if (!pubKey) {