mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
update displayed buttons on groups
This commit is contained in:
parent
5f994851d1
commit
b89f55dd02
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue