mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Add group title fix
This commit is contained in:
@@ -89,7 +89,9 @@ export class WAConnection extends Base {
|
|||||||
this.logger.warn (`group ID switched from ${gid} to ${response.gid}`)
|
this.logger.warn (`group ID switched from ${gid} to ${response.gid}`)
|
||||||
}
|
}
|
||||||
await this.chatAdd(response.gid, title)
|
await this.chatAdd(response.gid, title)
|
||||||
this.chats.get(response.gid).metadata = metadata
|
const chat = this.chats.get(response.gid)
|
||||||
|
chat.metadata = metadata
|
||||||
|
chat.name = title // in case the chat wasn't inserted
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user