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:
@@ -88,8 +88,10 @@ export class WAConnection extends Base {
|
||||
metadata = await this.groupMetadata (gid)
|
||||
this.logger.warn (`group ID switched from ${gid} to ${response.gid}`)
|
||||
}
|
||||
await this.chatAdd (response.gid, title)
|
||||
this.chats.get(response.gid).metadata = metadata
|
||||
await this.chatAdd(response.gid, title)
|
||||
const chat = this.chats.get(response.gid)
|
||||
chat.metadata = metadata
|
||||
chat.name = title // in case the chat wasn't inserted
|
||||
return response
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user