chat notifications that make sense

master
Aevann 2024-07-13 17:12:07 +03:00
parent 385620224f
commit 2a6b327ef2
2 changed files with 2 additions and 2 deletions

View File

@ -208,6 +208,7 @@ def speak(data, v):
ChatMembership.user_id.in_(notify_users),
)
for membership in memberships:
membership.notification = False
membership.mentions += 1
g.db.add(membership)

View File

@ -71,8 +71,7 @@
{{chat.name}}
{% if mentions %}
<span class="notif-chats notif-count ml-1" style="padding-left:4.5px;background:#dd1ae0">{{mentions}}</span>
{% endif %}
{% if notification %}
{% elif notification %}
<i class="fas fa-circle ml-2 text-small" style="color:#008080"></i>
{% elif notification == None %}
<i class="fas fa-bell-slash ml-2 text-danger" data-bs-toggle="tooltip" title="Muted (just leave bro)"></i>