From 55b8b2b0c80b032874c38f83a2a3bbd796e32667 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Fri, 19 May 2023 21:33:33 +0100 Subject: [PATCH] fix: also hide status message if offline --- src/classes/User.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/classes/User.ts b/src/classes/User.ts index bbf2d685..fc5f56a5 100644 --- a/src/classes/User.ts +++ b/src/classes/User.ts @@ -140,10 +140,10 @@ export class User { * @returns Status message */ statusMessage(translate: (presence: Presence) => string = (a) => a) { - return ( - this.status?.text ?? - (this.presence === "Focus" ? translate("Focus") : undefined) - ); + return this.online + ? this.status?.text ?? + (this.presence === "Focus" ? translate("Focus") : undefined) + : undefined; } /**