Ensure ESC removes quoted reply when drafting

This commit is contained in:
trevor-signal 2024-11-20 11:38:45 -05:00 committed by GitHub
parent fd9e3ea7e0
commit 19f7bff8a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 31 additions and 30 deletions

8
ts/model-types.d.ts vendored
View file

@ -38,6 +38,7 @@ import type { AnyPaymentEvent } from './types/Payment';
import AccessRequiredEnum = Proto.AccessControl.AccessRequired;
import MemberRoleEnum = Proto.Member.Role;
import type { MessageRequestResponseEvent } from './types/MessageRequestResponseEvent';
import type { QuotedMessageForComposerType } from './state/ducks/composer';
export type LastMessageStatus =
| 'paused'
@ -97,10 +98,11 @@ export type QuotedMessageType = {
id: number | null;
isGiftBadge?: boolean;
isViewOnce: boolean;
// `messageId` is deprecated
messageId?: string;
referencedMessageNotFound: boolean;
text?: string;
/** @deprecated `messageId` is used only in composer state, but still may exist in DB
* records, particularly for messages sent from this device */
messageId?: string;
};
type StoryReplyContextType = {
@ -324,7 +326,7 @@ export type DraftEditMessageType = {
body: string;
preview?: LinkPreviewType;
targetMessageId: string;
quote?: QuotedMessageType;
quote?: QuotedMessageForComposerType['quote'];
};
export type ConversationAttributesType = {