mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Use name instead of title
This commit is contained in:
@@ -162,9 +162,11 @@ export class WAConnection extends Base {
|
|||||||
this.on ('close', rejectTask)
|
this.on ('close', rejectTask)
|
||||||
}).finally (deregisterCallbacks)
|
}).finally (deregisterCallbacks)
|
||||||
|
|
||||||
this.chats.all ().forEach (chat => {
|
this.chats
|
||||||
|
.all ()
|
||||||
|
.forEach (chat => {
|
||||||
const respectiveContact = this.contacts[chat.jid]
|
const respectiveContact = this.contacts[chat.jid]
|
||||||
chat.title = respectiveContact?.name || respectiveContact?.notify
|
chat.name = respectiveContact?.name || respectiveContact?.notify || chat.name
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
private releasePendingRequests () {
|
private releasePendingRequests () {
|
||||||
|
|||||||
@@ -143,10 +143,10 @@ export interface WAChat {
|
|||||||
pin?: string
|
pin?: string
|
||||||
spam: 'false' | 'true'
|
spam: 'false' | 'true'
|
||||||
modify_tag: string
|
modify_tag: string
|
||||||
|
name?: string
|
||||||
|
|
||||||
// Baileys added properties
|
// Baileys added properties
|
||||||
messages: WAMessage[]
|
messages: WAMessage[]
|
||||||
title?: string
|
|
||||||
imgUrl?: string
|
imgUrl?: string
|
||||||
}
|
}
|
||||||
export enum WAMetric {
|
export enum WAMetric {
|
||||||
|
|||||||
Reference in New Issue
Block a user