emit update on metadata

This commit is contained in:
Adhiraj Singh
2021-04-29 23:15:31 +05:30
parent 45503898b0
commit 1d31b7a20c

View File

@@ -92,6 +92,9 @@ export class WAConnection extends Base {
const chat = this.chats.get(response.gid)
chat.metadata = metadata
chat.name = title // in case the chat wasn't inserted
this.emit('chat-update', { jid: chat.jid, name: chat.name, metadata })
return response
}
/**