Skip to content

Commit

Permalink
fix: Fixed getActiveChat is not async (#2350)
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored Oct 24, 2024
1 parent 1d39342 commit 1230a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/layers/ui.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export class UILayer extends GroupLayer {
}

/**
* Return the current active chat
* Return the currently active chat (visually open)
* @category UI
*/
public async getActiveChat() {
public getActiveChat() {
return evaluateAndReturn(this.page, () => WPP.chat.getActiveChat());
}
}

0 comments on commit 1230a12

Please sign in to comment.