Fix the accidentally dual-keyspaced cf from conduit.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-10-22 07:03:10 +00:00
parent 0df5e5e7ac
commit 7cbc2ee385
4 changed files with 14 additions and 1 deletions

View File

@@ -200,6 +200,10 @@ pub(super) static MAPS: &[Descriptor] = &[
name: "roomuserid_lastprivatereadupdate",
..descriptor::RANDOM_SMALL
},
Descriptor {
name: "roomuserid_lastnotificationread",
..descriptor::RANDOM_SMALL
},
Descriptor {
name: "roomuserid_leftcount",
val_size_hint: Some(8),

View File

@@ -24,7 +24,8 @@ impl crate::Service for Service {
db: Data {
userroomid_notificationcount: args.db["userroomid_notificationcount"].clone(),
userroomid_highlightcount: args.db["userroomid_highlightcount"].clone(),
roomuserid_lastnotificationread: args.db["userroomid_highlightcount"].clone(),
roomuserid_lastnotificationread: args.db["roomuserid_lastnotificationread"]
.clone(),
},
services: args.services.clone(),
}))

View File

@@ -37,6 +37,7 @@ pub struct Data {
roomusertype_roomuserdataid: Arc<Map>,
readreceiptid_readreceipt: Arc<Map>,
userid_lastonetimekeyupdate: Arc<Map>,
roomuserid_lastnotificationread: Arc<Map>,
}
#[derive(Debug, Default)]
@@ -81,6 +82,8 @@ impl crate::Service for Service {
roomusertype_roomuserdataid: args.db["roomusertype_roomuserdataid"].clone(),
readreceiptid_readreceipt: args.db["readreceiptid_readreceipt"].clone(),
userid_lastonetimekeyupdate: args.db["userid_lastonetimekeyupdate"].clone(),
roomuserid_lastnotificationread: args.db["roomuserid_lastnotificationread"]
.clone(),
},
services: args.services.clone(),
connections: Default::default(),

View File

@@ -85,6 +85,11 @@ where
let roomuser_prefix = (room_id, user_id);
let typing_room_id = room_id.to_owned();
let watchers = [
// Notification clearance
self.db
.roomuserid_lastnotificationread
.watch_prefix(&roomuser_prefix)
.boxed(),
// Key changes
self.db
.keychangeid_userid