From def39ed85a99ba6a8b3b5294cd80e7496daefa2e Mon Sep 17 00:00:00 2001 From: Zuzanna Date: Tue, 10 Feb 2026 11:19:36 +0100 Subject: [PATCH] comments, cleaning --- src/worker/components/mailbox-handlers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/worker/components/mailbox-handlers.js b/src/worker/components/mailbox-handlers.js index 0dd470a14..98d63bd0b 100644 --- a/src/worker/components/mailbox-handlers.js +++ b/src/worker/components/mailbox-handlers.js @@ -843,6 +843,7 @@ const factory = (Messaging, Hash, Util, Crypto, Block) => { if (sfDeleted[sfId]) { return void cb(true); } sfDeleted[sfId] = 1; + // If it's a team SF, add the team name here if (!teamId) { return void cb(false); } @@ -858,12 +859,12 @@ const factory = (Messaging, Hash, Util, Crypto, Block) => { delete sfDeleted[id]; }; - var msgNotif = {}; handlers['SEND_CHAT_MESSAGE'] = function (ctx, box, data, cb) { var msgSender = data.msg.author; + //Check if sender is in contacts and not muted if (msgNotif[msgSender] || isMuted(ctx, data) || !ctx.store.proxy.friends[msgSender]) { return void cb(true); } msgNotif[msgSender] = 1;