| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Reviewer's guide (collapsed on small PRs)
Reviewer's GuideEnsure mediaKey passed to Baileys download functions is converted from an object to a Uint8Array, preventing bad decrypt errors when using downloadMediaMessage or downloadContentFromMessage. Sequence diagram for mediaKey conversion before media downloadsequenceDiagram
participant Service as BaileysStartupService
participant MediaMsg as mediaMessage
participant Baileys as Baileys download function
Service->>MediaMsg: Check mediaKey type
alt mediaKey is object
Service->>MediaMsg: Convert mediaKey to Uint8Array
end
Service->>Baileys: Call downloadMediaMessage/downloadContentFromMessage with converted mediaKey
Class diagram for mediaKey handling in BaileysStartupServiceclassDiagram
class BaileysStartupService {
+downloadMediaMessage(msg)
+downloadContentFromMessage(msg)
}
class mediaMessage {
mediaKey: object | Uint8Array
}
BaileysStartupService --|> mediaMessage: uses
BaileysStartupService : converts mediaKey from object to Uint8Array
File-Level Changes
Possibly linked issues
Tips and commands Interacting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sorry, something went wrong.
|
Boa. Apliquei aqui. Entrei 100 mil mensagens tenho umas 10 dessas por dia. Irei acompanhar aqui e amanha darei um retorno. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Calling baileys downloadMediaMessage or downloadContentFromMessage with parameter "mediaKey" with an object will fail.
Summary by Sourcery
Bug Fixes: