Allow backfill for more undownloadable attachments
This commit is contained in:
parent
d69887a4f9
commit
427f91f903
8 changed files with 98 additions and 49 deletions
|
@ -3825,6 +3825,16 @@ export default class MessageReceiver
|
|||
logId
|
||||
);
|
||||
|
||||
strictAssert(
|
||||
targetMessage != null,
|
||||
'MessageReceiver.handleAttachmentBackfillResponse: invalid target message'
|
||||
);
|
||||
strictAssert(
|
||||
targetConversation != null,
|
||||
'MessageReceiver.handleAttachmentBackfillResponse: ' +
|
||||
'invalid target conversation'
|
||||
);
|
||||
|
||||
let eventData: AttachmentBackfillResponseSyncEventData;
|
||||
if (response.error != null) {
|
||||
eventData = {
|
||||
|
@ -3833,16 +3843,6 @@ export default class MessageReceiver
|
|||
targetConversation,
|
||||
};
|
||||
} else {
|
||||
strictAssert(
|
||||
targetMessage != null,
|
||||
'MessageReceiver.handleAttachmentBackfillResponse: invalid target message'
|
||||
);
|
||||
strictAssert(
|
||||
targetConversation != null,
|
||||
'MessageReceiver.handleAttachmentBackfillResponse: ' +
|
||||
'invalid target conversation'
|
||||
);
|
||||
|
||||
const { attachments } = response;
|
||||
strictAssert(
|
||||
attachments != null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue