Fix nicknames visibility

This commit is contained in:
Jamie Kyle 2024-04-01 14:35:03 -07:00 committed by GitHub
parent acb0f28c89
commit 89ebbf8af4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@
import * as RemoteConfig from '../RemoteConfig';
import type { ConversationType } from '../state/ducks/conversations';
import { isSignalConnection } from './getSignalConnections';
import { isSignalConversation } from './isSignalConversation';
export function areNicknamesEnabled(): boolean {
return RemoteConfig.getValue('desktop.nicknames') === 'TRUE';
@ -14,8 +14,8 @@ export function canHaveNicknameAndNote(
): boolean {
return (
areNicknamesEnabled() &&
conversation.type === 'group' &&
!isSignalConnection(conversation) &&
conversation.type !== 'group' &&
!isSignalConversation(conversation) &&
!conversation.isMe
);
}