Skip to content

Commit

Permalink
feat: Added client.getActiveChat
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Apr 29, 2023
1 parent 14ec3e8 commit 9d1c959
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/api/layers/ui.layer.ts
Expand Up @@ -52,4 +52,11 @@ export class UILayer extends GroupLayer {
chatId
);
}
/**
* Return the current active chat
* @category UI
*/
public async getActiveChat() {
return evaluateAndReturn(this.page, () => WPP.chat.getActiveChat());
}
}

0 comments on commit 9d1c959

Please sign in to comment.