Fix nicknames visibility
This commit is contained in:
parent
acb0f28c89
commit
89ebbf8af4
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import * as RemoteConfig from '../RemoteConfig';
|
import * as RemoteConfig from '../RemoteConfig';
|
||||||
import type { ConversationType } from '../state/ducks/conversations';
|
import type { ConversationType } from '../state/ducks/conversations';
|
||||||
import { isSignalConnection } from './getSignalConnections';
|
import { isSignalConversation } from './isSignalConversation';
|
||||||
|
|
||||||
export function areNicknamesEnabled(): boolean {
|
export function areNicknamesEnabled(): boolean {
|
||||||
return RemoteConfig.getValue('desktop.nicknames') === 'TRUE';
|
return RemoteConfig.getValue('desktop.nicknames') === 'TRUE';
|
||||||
|
@ -14,8 +14,8 @@ export function canHaveNicknameAndNote(
|
||||||
): boolean {
|
): boolean {
|
||||||
return (
|
return (
|
||||||
areNicknamesEnabled() &&
|
areNicknamesEnabled() &&
|
||||||
conversation.type === 'group' &&
|
conversation.type !== 'group' &&
|
||||||
!isSignalConnection(conversation) &&
|
!isSignalConversation(conversation) &&
|
||||||
!conversation.isMe
|
!conversation.isMe
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue