mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
emit update on metadata
This commit is contained in:
@@ -92,6 +92,9 @@ export class WAConnection extends Base {
|
|||||||
const chat = this.chats.get(response.gid)
|
const chat = this.chats.get(response.gid)
|
||||||
chat.metadata = metadata
|
chat.metadata = metadata
|
||||||
chat.name = title // in case the chat wasn't inserted
|
chat.name = title // in case the chat wasn't inserted
|
||||||
|
|
||||||
|
this.emit('chat-update', { jid: chat.jid, name: chat.name, metadata })
|
||||||
|
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user