Use name instead of title

This commit is contained in:
Adhiraj
2020-08-23 22:37:50 +05:30
parent ef9d3661ca
commit c44413538b
2 changed files with 5 additions and 3 deletions

View File

@@ -162,9 +162,11 @@ export class WAConnection extends Base {
this.on ('close', rejectTask)
}).finally (deregisterCallbacks)
this.chats.all ().forEach (chat => {
this.chats
.all ()
.forEach (chat => {
const respectiveContact = this.contacts[chat.jid]
chat.title = respectiveContact?.name || respectiveContact?.notify
chat.name = respectiveContact?.name || respectiveContact?.notify || chat.name
})
}
private releasePendingRequests () {