From 85b9f22b04fd4f1a6b8b62b1c9d430336327ec43 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 2 Feb 2021 11:09:13 +1100 Subject: [PATCH] allow back to leave an open group --- ts/components/session/menu/Menu.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ts/components/session/menu/Menu.tsx b/ts/components/session/menu/Menu.tsx index 25b83ae7d..ff9a0725a 100644 --- a/ts/components/session/menu/Menu.tsx +++ b/ts/components/session/menu/Menu.tsx @@ -33,7 +33,7 @@ function showDeleteMessages(isPublic: boolean): boolean { } function showCopyId(isPublic: boolean, isGroup: boolean): boolean { - return !isGroup || isPublic; + return !isGroup; // || isPublic; } function showDeleteContact( @@ -44,7 +44,10 @@ function showDeleteContact( isKickedFromGroup: boolean ): boolean { // you need to have left a closed group first to be able to delete it completely. - return (!isMe && !isGroup) || (isGroup && (isGroupLeft || isKickedFromGroup)); + return ( + (!isMe && !isGroup) || + (isGroup && (isGroupLeft || isKickedFromGroup || isPublic)) + ); } function showAddModerators(