Mandatory profile sharing: Don't disable react/reply in GroupV2 groups

This commit is contained in:
Scott Nonnenberg
2021-09-02 16:29:46 -07:00
committed by GitHub
parent 0793aa6b43
commit 1dda705c52
2 changed files with 18 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { ConversationAttributesType } from '../model-types.d';
import { ConversationType } from '../state/ducks/conversations';
import { base64ToArrayBuffer, fromEncodedBinaryToArrayBuffer } from '../Crypto';
export enum ConversationTypes {
@@ -12,9 +13,13 @@ export enum ConversationTypes {
}
export function isDirectConversation(
conversationAttrs: Pick<ConversationAttributesType, 'type'>
conversationAttrs:
| Pick<ConversationAttributesType, 'type'>
| Pick<ConversationType, 'type'>
): boolean {
return conversationAttrs.type === 'private';
return (
conversationAttrs.type === 'private' || conversationAttrs.type === 'direct'
);
}
export function isMe(conversationAttrs: ConversationAttributesType): boolean {