mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
allow back to leave an open group
This commit is contained in:
parent
fb9f615a11
commit
d60e34017a
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue