Edit message import/export

This commit is contained in:
Fedor Indutny 2024-06-03 10:02:25 -07:00 committed by GitHub
parent d47b46500e
commit fa1530debf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 562 additions and 158 deletions

View file

@ -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> {