From e94783c051cd319d953161a9f754c16164c2172c Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 24 May 2024 09:16:11 +0300 Subject: [PATCH] fix notifs --- files/routes/chat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index c500bcf0d..e2b611a04 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -164,11 +164,13 @@ def speak(data, v): - notify_users = NOTIFY_USERS(chat_message.text, v) - alrdy_here + notify_users = NOTIFY_USERS(chat_message.text, v) if chat_message.quotes: notify_users.add(chat_message.quoted_message.user_id) + notify_users -= alrdy_here + memberships = g.db.query(ChatMembership).options(load_only(ChatMembership.user_id)).filter( ChatMembership.chat_id == chat_id, ChatMembership.user_id.in_(notify_users),