mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 04:29:15 +00:00
fix: correctly get message contact in group chats
This commit is contained in:
@@ -128,7 +128,7 @@ class Message extends Base {
|
|||||||
* @returns {Promise<Contact>}
|
* @returns {Promise<Contact>}
|
||||||
*/
|
*/
|
||||||
getContact() {
|
getContact() {
|
||||||
return this.client.getContactById(this._getChatId());
|
return this.client.getContactById(this.author || this.from);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user