New Chat property isLocked (#5798)
* New property isLocked * New property isLocked
This commit is contained in:
parent
9b53bebfd2
commit
9e0fe29218
2 changed files with 8 additions and 0 deletions
2
index.d.ts
vendored
2
index.d.ts
vendored
|
|
@ -1717,6 +1717,8 @@ declare namespace WAWebJS {
|
||||||
lastMessage: Message,
|
lastMessage: Message,
|
||||||
/** Indicates if the Chat is pinned */
|
/** Indicates if the Chat is pinned */
|
||||||
pinned: boolean,
|
pinned: boolean,
|
||||||
|
/** Indicates if the Chat is locked */
|
||||||
|
isLocked: boolean,
|
||||||
|
|
||||||
/** Archives this chat */
|
/** Archives this chat */
|
||||||
archive: () => Promise<void>,
|
archive: () => Promise<void>,
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,12 @@ class Chat extends Base {
|
||||||
*/
|
*/
|
||||||
this.pinned = !!data.pin;
|
this.pinned = !!data.pin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates if the Chat is locked
|
||||||
|
* @type {boolean}
|
||||||
|
*/
|
||||||
|
this.isLocked = data.isLocked;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the chat is muted or not
|
* Indicates if the chat is muted or not
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue