mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-21 04:59:14 +00:00
feat: added starred indicator to messages (#501)
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
committed by
Pedro S. Lopez
parent
1b946940f4
commit
5a0ccc8b17
2
index.d.ts
vendored
2
index.d.ts
vendored
@@ -481,6 +481,8 @@ declare namespace WAWebJS {
|
|||||||
id: MessageId,
|
id: MessageId,
|
||||||
/** Indicates if the message was forwarded */
|
/** Indicates if the message was forwarded */
|
||||||
isForwarded: boolean,
|
isForwarded: boolean,
|
||||||
|
/** Indicates if the message was starred */
|
||||||
|
isStarred: boolean,
|
||||||
/** Location information contained in the message, if the message is type "location" */
|
/** Location information contained in the message, if the message is type "location" */
|
||||||
location: Location,
|
location: Location,
|
||||||
/** List of vCards contained in the message */
|
/** List of vCards contained in the message */
|
||||||
|
|||||||
@@ -93,6 +93,12 @@ class Message extends Base {
|
|||||||
*/
|
*/
|
||||||
this.isStatus = data.isStatusV3;
|
this.isStatus = data.isStatusV3;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates if the message was stared
|
||||||
|
* @type {boolean}
|
||||||
|
*/
|
||||||
|
this.isStarred = data.star;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the message was a broadcast
|
* Indicates if the message was a broadcast
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
|||||||
Reference in New Issue
Block a user