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
|
@ -12,7 +12,10 @@ import { UserText } from '../UserText';
|
|||
import { SharedGroupNames } from '../SharedGroupNames';
|
||||
import { About } from './About';
|
||||
import { Intl } from '../Intl';
|
||||
import { areNicknamesEnabled } from '../../util/nicknames';
|
||||
import {
|
||||
areNicknamesEnabled,
|
||||
canHaveNicknameAndNote,
|
||||
} from '../../util/nicknames';
|
||||
|
||||
function muted(parts: Array<string | JSX.Element>) {
|
||||
return (
|
||||
|
@ -146,7 +149,7 @@ export function AboutContactModal({
|
|||
<div className="AboutContactModal__row">
|
||||
<i className="AboutContactModal__row__icon AboutContactModal__row__icon--profile" />
|
||||
|
||||
{areNicknamesEnabled() &&
|
||||
{canHaveNicknameAndNote(conversation) &&
|
||||
conversation.nicknameGivenName &&
|
||||
conversation.titleNoNickname ? (
|
||||
<span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue