fix: add missing downloadQpl parameter to downloadAndMaybeDecrypt (#4010)

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
Lai Ting Yang 2025-12-13 12:54:14 +08:00 • committed by GitHub
commit de072a1c7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);