fix: also hide status message if offline

This commit is contained in:
Paul Makles
2023-05-19 21:33:33 +01:00
parent e77681a215
commit 55b8b2b0c8
+4 -4
View File
@@ -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;
}
/**