improvement: better and more efficient message count calculation
This commit is contained in:
parent
1dc85895a7
commit
662a0cf1df
7 changed files with 169 additions and 68 deletions
|
@ -47,6 +47,8 @@ pub async fn set_read_marker_route(
|
|||
))?,
|
||||
&db.globals,
|
||||
)?;
|
||||
db.rooms
|
||||
.reset_notification_counts(&sender_user, &body.room_id)?;
|
||||
|
||||
let mut user_receipts = BTreeMap::new();
|
||||
user_receipts.insert(
|
||||
|
@ -103,6 +105,8 @@ pub async fn create_receipt_route(
|
|||
))?,
|
||||
&db.globals,
|
||||
)?;
|
||||
db.rooms
|
||||
.reset_notification_counts(&sender_user, &body.room_id)?;
|
||||
|
||||
let mut user_receipts = BTreeMap::new();
|
||||
user_receipts.insert(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue