mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Mandatory profile sharing: Don't disable react/reply in GroupV2 groups
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user