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,
|
||||
/** Indicates if the Chat is pinned */
|
||||
pinned: boolean,
|
||||
/** Indicates if the Chat is locked */
|
||||
isLocked: boolean,
|
||||
|
||||
/** Archives this chat */
|
||||
archive: () => Promise<void>,
|
||||
|
|
|
|||
|
|
@ -63,6 +63,12 @@ class Chat extends Base {
|
|||
*/
|
||||
this.pinned = !!data.pin;
|
||||
|
||||
/**
|
||||
* Indicates if the Chat is locked
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.isLocked = data.isLocked;
|
||||
|
||||
/**
|
||||
* Indicates if the chat is muted or not
|
||||
* @type {boolean}
|
||||
|
|
|
|||
Loading…
Reference in a new issue