push notifs for chats

master
Aevann 2024-04-08 07:36:02 +02:00
parent 58fc68c0a4
commit 6e87a205d1
1 changed files with 5 additions and 0 deletions

View File

@ -161,6 +161,11 @@ def speak(data, v):
membership.notification = True
g.db.add(membership)
uids = set(x.user_id for x in memberships)
title = f'New chat messages in "{chat.name}"'
url = f'{SITE_FULL}/chat/{chat.id}'
push_notif(uids, title, None, url)
data = {
"id": chat_message.id,
"quotes": chat_message.quotes,