update version

This commit is contained in:
Adhiraj Singh
2021-08-13 18:06:11 +05:30
parent 5ee5cd8c01
commit e09d0ba24e
2 changed files with 4 additions and 1 deletions

View File

@@ -90,6 +90,9 @@ const makeMessagesSocket = (config: SocketConfig) => {
expect200: true,
requiresPhoneConnection: true
})
if(!response[1]) {
throw new Boom('Media not present on phone', { statusCode: 422 })
}
Object.keys(response[1]).forEach (key => content[key] = response[1][key]) // update message
ev.emit('messages.update', [{ key: message.key, update: { message: message.message } }])