Hide nicknames and notes on note to self
This commit is contained in:
parent
c14f5c4712
commit
fc65917fc3
4 changed files with 22 additions and 6 deletions
|
@ -25,7 +25,7 @@ import { UserText } from '../UserText';
|
|||
import { Button, ButtonIconType, ButtonVariant } from '../Button';
|
||||
import { isInSystemContacts } from '../../util/isInSystemContacts';
|
||||
import { InContactsIcon } from '../InContactsIcon';
|
||||
import { areNicknamesEnabled } from '../../util/nicknames';
|
||||
import { canHaveNicknameAndNote } from '../../util/nicknames';
|
||||
|
||||
export type PropsDataType = {
|
||||
areWeASubscriber: boolean;
|
||||
|
@ -306,7 +306,7 @@ export function ContactModal({
|
|||
)}
|
||||
<div className="ContactModal__divider" />
|
||||
<div className="ContactModal__button-container">
|
||||
{areNicknamesEnabled() && !contact.isMe && (
|
||||
{canHaveNicknameAndNote(contact) && (
|
||||
<button
|
||||
type="button"
|
||||
className="ContactModal__button ContactModal__block"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue