New Chat property isLocked (#5798)

* New property isLocked

* New property isLocked
This commit is contained in:
BenyFilho 2026-02-06 21:42:51 -03:00 • committed by GitHub
commit 9e0fe29218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

2
index.d.ts vendored
View file

@ -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>,

View file

@ -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}