Terminology: room mention count → highlight count

This commit is contained in:
miruka
2020-05-31 19:13:19 -04:00
parent dce3328037
commit 3791a08eea
7 changed files with 32 additions and 31 deletions

View File

@@ -278,12 +278,12 @@ class Backend:
room = self.models[user_id, "rooms"].get(room_id)
if room:
account = self.models["accounts"][user_id]
account.total_unread -= room.unreads
account.total_mentions -= room.mentions
account = self.models["accounts"][user_id]
account.total_unread -= room.unreads
account.total_highlights -= room.highlights
room.mentions = 0
room.unreads = 0
room.highlights = 0
room.unreads = 0
# General functions