allow back to leave an open group

This commit is contained in:
Audric Ackermann 2021-02-02 11:09:13 +11:00
parent fb9f615a11
commit d60e34017a
No known key found for this signature in database
GPG key ID: 999F434D76324AD4

View file

@ -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(