fix: add missing downloadQpl parameter to downloadAndMaybeDecrypt (#4010)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
parent
6aa1bd85ab
commit
de072a1c7c
1 changed files with 6 additions and 1 deletions
|
|
@ -468,6 +468,10 @@ class Message extends Base {
|
|||
}
|
||||
|
||||
try {
|
||||
const mockQpl = {
|
||||
addAnnotations: function() { return this; },
|
||||
addPoint: function() { return this; }
|
||||
};
|
||||
const decryptedMedia = await window.Store.DownloadManager.downloadAndMaybeDecrypt({
|
||||
directPath: msg.directPath,
|
||||
encFilehash: msg.encFilehash,
|
||||
|
|
@ -475,7 +479,8 @@ class Message extends Base {
|
|||
mediaKey: msg.mediaKey,
|
||||
mediaKeyTimestamp: msg.mediaKeyTimestamp,
|
||||
type: msg.type,
|
||||
signal: (new AbortController).signal
|
||||
signal: (new AbortController).signal,
|
||||
downloadQpl: mockQpl
|
||||
});
|
||||
|
||||
const data = await window.WWebJS.arrayBufferToBase64Async(decryptedMedia);
|
||||
|
|
|
|||
Loading…
Reference in a new issue