give pink notif when reply to message

pull/227/head
Aevann 2024-05-24 05:13:41 +03:00
parent cfed68c581
commit 470f4e23c4
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ def speak(data, v):
notify_users = NOTIFY_USERS(chat_message.text, v) - alrdy_here
if chat_message.quotes:
notify_users.add(chat_message.quoted_message.user_id)
memberships = g.db.query(ChatMembership).options(load_only(ChatMembership.user_id)).filter(
ChatMembership.chat_id == chat_id,
ChatMembership.user_id.in_(notify_users),