Count user connected devices (#3223)
* Update Store.js * All * Make Eslist god happy --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
This commit is contained in:
parent
8fdf2b840e
commit
d2597bba72
4 changed files with 35 additions and 3 deletions
10
index.d.ts
vendored
10
index.d.ts
vendored
|
|
@ -176,7 +176,15 @@ declare namespace WAWebJS {
|
|||
* @param flag true/false on or off
|
||||
*/
|
||||
setAutoDownloadVideos(flag: boolean): Promise<void>
|
||||
|
||||
|
||||
/**
|
||||
* Get user device count by ID
|
||||
* Each WaWeb Connection counts as one device, and the phone (if exists) counts as one
|
||||
* So for a non-enterprise user with one WaWeb connection it should return "2"
|
||||
* @param {string} contactId
|
||||
*/
|
||||
getContactDeviceCount(contactId: string): Promise<Number>
|
||||
|
||||
/** Changes and returns the archive state of the Chat */
|
||||
unarchiveChat(chatId: string): Promise<boolean>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue