From 4e99a3325318c902cd78ea9f760f46d79acde5c0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 3 Oct 2022 11:28:16 +0200 Subject: riesencommit (part 1) --- client-web/source/chat.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client-web/source/chat.ts') diff --git a/client-web/source/chat.ts b/client-web/source/chat.ts index 6ddab8b..b7c572d 100644 --- a/client-web/source/chat.ts +++ b/client-web/source/chat.ts @@ -10,6 +10,7 @@ import { ediv, espan, image_view, notify, OverlayUi } from "./helper.ts"; import { log } from "./logger.ts"; import { PREFS } from "./preferences/mod.ts"; import { Room } from "./room.ts"; +import { LocalUser } from "./user/local.ts"; import { User } from "./user/mod.ts"; export class Chat extends OverlayUi { @@ -79,6 +80,6 @@ export class Chat extends OverlayUi { let body_str = "(empty message)" if (message.text) body_str = message.text if (message.image) body_str = "(image)" - if (!sender.local && PREFS.notify_chat) notify(body_str, sender.display_name) + if (!(sender instanceof LocalUser) && PREFS.notify_chat) notify(body_str, sender.display_name) } } -- cgit v1.2.3-70-g09d2