From bf7765838698f265151ed7e7f5f3cf9bc8260f1c Mon Sep 17 00:00:00 2001 From: alexa Date: Sat, 1 Jun 2024 17:58:27 +0200 Subject: [PATCH] change check --- ui/api/Hooks.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/api/Hooks.mjs b/ui/api/Hooks.mjs index 4cb5d8c..a35ffbe 100644 --- a/ui/api/Hooks.mjs +++ b/ui/api/Hooks.mjs @@ -66,7 +66,7 @@ export function addMessage(channel, message) { store().setSignalValue('messages', {...ex, [channel]: [...ex[channel], message]}); const user = Store.get('user'); - if (message.userId === user.value.id) { + if (message.sender.id === user.value.id) { return; }