feat: map all WA media types

This commit is contained in:
Adhiraj Singh
2022-09-15 15:08:49 +05:30
parent b05ce25dfa
commit 3a891e071e
6 changed files with 32 additions and 21 deletions

View File

@@ -10,7 +10,7 @@ import { downloadContentFromMessage } from './messages-media'
const inflatePromise = promisify(inflate)
export const downloadHistory = async(msg: proto.Message.IHistorySyncNotification) => {
const stream = await downloadContentFromMessage(msg, 'history')
const stream = await downloadContentFromMessage(msg, 'md-msg-hist')
const bufferArray: Buffer[] = []
for await (const chunk of stream) {
bufferArray.push(chunk)