forked from rDrama/rDrama
1
0
Fork 0
Aevann 2024-03-10 21:27:52 +02:00
parent dc0f6d0655
commit 9236b5bd03
1 changed files with 4 additions and 0 deletions

View File

@ -124,4 +124,8 @@ def leave_chat(v, chat_id):
)
g.db.add(chat_leave)
chat_notifs = g.db.query(ChatNotification).filter_by(user_id=v.id, chat_id=chat_id)
for chat_notif in chat_notifs:
g.db.delete(chat_notif)
return {"message": "Chat left successfully!"}