Move to websocket for requests to signal server
This commit is contained in:
parent
8449f343a6
commit
1c1d0e2da0
31 changed files with 1892 additions and 1336 deletions
|
@ -2,6 +2,7 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { AttachmentType, DownloadedAttachmentType } from '../types/Attachment';
|
||||
import { downloadAttachment as doDownloadAttachment } from '../textsecure/downloadAttachment';
|
||||
|
||||
export async function downloadAttachment(
|
||||
attachmentData: AttachmentType
|
||||
|
@ -20,7 +21,8 @@ export async function downloadAttachment(
|
|||
|
||||
let downloaded;
|
||||
try {
|
||||
downloaded = await window.textsecure.messageReceiver.downloadAttachment(
|
||||
downloaded = await doDownloadAttachment(
|
||||
window.textsecure.server,
|
||||
migratedAttachment
|
||||
);
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue