Disable contact management for Note to Self

This commit is contained in:
Fedor Indutny 2023-06-05 09:14:58 -07:00 committed by GitHub
parent 7c1957c30d
commit 702153a28d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ export const ContactListItem: FunctionComponent<PropsType> = React.memo(
},
]
: []),
...(onAudioCall
...(!isMe && onAudioCall
? [
{
icon: 'ContactListItem__context-menu__phone-icon',
@ -110,7 +110,7 @@ export const ContactListItem: FunctionComponent<PropsType> = React.memo(
},
]
: []),
...(onVideoCall
...(!isMe && onVideoCall
? [
{
icon: 'ContactListItem__context-menu__video-icon',
@ -119,7 +119,7 @@ export const ContactListItem: FunctionComponent<PropsType> = React.memo(
},
]
: []),
...(onRemove
...(!isMe && onRemove
? [
{
icon: 'ContactListItem__context-menu__delete-icon',
@ -128,7 +128,7 @@ export const ContactListItem: FunctionComponent<PropsType> = React.memo(
},
]
: []),
...(onBlock
...(!isMe && onBlock
? [
{
icon: 'ContactListItem__context-menu__block-icon',
@ -138,7 +138,7 @@ export const ContactListItem: FunctionComponent<PropsType> = React.memo(
]
: []),
],
[id, i18n, onClick, onAudioCall, onVideoCall, onRemove, onBlock]
[id, i18n, isMe, onClick, onAudioCall, onVideoCall, onRemove, onBlock]
);
const headerName = isMe ? (