mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fixes
This commit is contained in:
@@ -70,12 +70,11 @@ export class WAConnection extends Base {
|
||||
*/
|
||||
groupUpdateSubject = async (jid: string, title: string) => {
|
||||
const chat = this.chats.get (jid)
|
||||
if (chat?.title === title) throw new Error ('redundant change')
|
||||
if (chat?.name === title) throw new Error ('redundant change')
|
||||
|
||||
const response = await this.groupQuery('subject', jid, title)
|
||||
if (chat) {
|
||||
chat.title = title
|
||||
//this.emit ('chat-update', {jid, title})
|
||||
}
|
||||
if (chat) chat.name = title
|
||||
|
||||
return response
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user