diff --git a/src/api/layers/ui.layer.ts b/src/api/layers/ui.layer.ts index 658b9ce4d..a205a84d0 100644 --- a/src/api/layers/ui.layer.ts +++ b/src/api/layers/ui.layer.ts @@ -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()); } }