update displayed buttons on groups

This commit is contained in:
Brice-W 2021-07-27 12:01:11 +10:00
parent 5f994851d1
commit b89f55dd02

View file

@ -131,7 +131,7 @@ const HeaderItem = () => {
name,
} = selectedConversation;
const showInviteContacts = (isPublic || weAreAdmin) && !isKickedFromGroup && !isBlocked && !left;
const showInviteContacts = !isKickedFromGroup && !isBlocked && !left;
const userName = name || profileName || phoneNumber;
return (
@ -249,9 +249,10 @@ export const SessionRightPanelWithDetails = () => {
};
});
const showUpdateGroupNameButton = weAreAdmin && !commonNoShow;
const showUpdateGroupNameButton = (!isPublic || isPublic && weAreAdmin) && !commonNoShow;
const showAddRemoveModeratorsButton = weAreAdmin && !commonNoShow && isPublic;
const showUpdateGroupMembersButton = !isPublic && isGroup && !commonNoShow;
const deleteConvoAction = isPublic