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
|
@ -2,7 +2,20 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as RemoteConfig from '../RemoteConfig';
|
||||
import type { ConversationType } from '../state/ducks/conversations';
|
||||
import { isSignalConnection } from './getSignalConnections';
|
||||
|
||||
export function areNicknamesEnabled(): boolean {
|
||||
return RemoteConfig.getValue('desktop.nicknames') === 'TRUE';
|
||||
}
|
||||
|
||||
export function canHaveNicknameAndNote(
|
||||
conversation: ConversationType
|
||||
): boolean {
|
||||
return (
|
||||
areNicknamesEnabled() &&
|
||||
conversation.type === 'group' &&
|
||||
!isSignalConnection(conversation) &&
|
||||
!conversation.isMe
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue