mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 19:34:04 +01:00
Edit message import/export
This commit is contained in:
@@ -571,14 +571,16 @@ async function saveMessage(
|
||||
async function saveMessages(
|
||||
arrayOfMessages: ReadonlyArray<MessageType>,
|
||||
options: { forceSave?: boolean; ourAci: AciString }
|
||||
): Promise<void> {
|
||||
await channels.saveMessages(
|
||||
): Promise<Array<string>> {
|
||||
const result = await channels.saveMessages(
|
||||
arrayOfMessages.map(message => _cleanMessageData(message)),
|
||||
options
|
||||
);
|
||||
|
||||
void expiringMessagesDeletionService.update();
|
||||
void tapToViewMessagesDeletionService.update();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
async function removeMessage(id: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user