fix notifs

pull/227/head
Aevann 2024-05-24 09:16:11 +03:00
parent a134128f02
commit e94783c051
1 changed files with 3 additions and 1 deletions

View File

@ -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),