Send edited messages support
Co-authored-by: Fedor Indutnyy <indutny@signal.org>
This commit is contained in:
parent
d380817a44
commit
1f2cde6d04
79 changed files with 2507 additions and 1175 deletions
19
ts/util/copyDataMessageIntoMessage.ts
Normal file
19
ts/util/copyDataMessageIntoMessage.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { MessageAttributesType } from '../model-types.d';
|
||||
import type { ProcessedDataMessage } from '../textsecure/Types.d';
|
||||
|
||||
export function copyDataMessageIntoMessage(
|
||||
dataMessage: ProcessedDataMessage,
|
||||
message: MessageAttributesType
|
||||
): MessageAttributesType {
|
||||
return {
|
||||
...message,
|
||||
...dataMessage,
|
||||
// TODO: DESKTOP-5278
|
||||
// There are type conflicts between MessageAttributesType and the protos
|
||||
// that are passed in here.
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} as any as MessageAttributesType;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue