mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 05:38:12 +00:00
Hide nicknames and notes on note to self
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user