allow back to leave an open group

pull/1468/head
Audric Ackermann 5 years ago
parent fb9f615a11
commit d60e34017a
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -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…
Cancel
Save