Add group title fix

This commit is contained in:
Adhiraj Singh
2021-04-29 23:00:57 +05:30
parent 5dfeaf75b0
commit b473ed7502

View File

@@ -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
}
/**