same as last commit
parent
9da02617cf
commit
2da644ea70
|
@ -146,6 +146,7 @@ def speak(data, v):
|
||||||
g.db.delete(existing)
|
g.db.delete(existing)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
|
|
||||||
|
if chat.id != 1:
|
||||||
alrdy_here = set(online[request.referrer].keys())
|
alrdy_here = set(online[request.referrer].keys())
|
||||||
memberships = g.db.query(ChatMembership).options(load_only(ChatMembership.user_id)).filter(
|
memberships = g.db.query(ChatMembership).options(load_only(ChatMembership.user_id)).filter(
|
||||||
ChatMembership.chat_id == chat_id,
|
ChatMembership.chat_id == chat_id,
|
||||||
|
@ -163,8 +164,6 @@ def speak(data, v):
|
||||||
push_notif(uids, title, body, url)
|
push_notif(uids, title, body, url)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if chat.id != 1:
|
|
||||||
notify_users = NOTIFY_USERS(chat_message.text, v)
|
notify_users = NOTIFY_USERS(chat_message.text, v)
|
||||||
if chat_message.quotes:
|
if chat_message.quotes:
|
||||||
notify_users.add(chat_message.quoted_message.user_id)
|
notify_users.add(chat_message.quoted_message.user_id)
|
||||||
|
|
Loading…
Reference in New Issue