mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 04:06:54 +00:00
fix: Correct roomuserid_lastnotificationread table alias
roomuserid_lastnotificationread was mapped to userroomid_highlightcount instead of its own table, so last_notification_read() read the highlight count and reset_notification_counts clobbered the highlight table when setting a read marker. Add the missing table definition and fix the alias.
This commit is contained in:
1 parent
aa612baef3
commit
4727f07e26
3 files changed
+7
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
Fixed `roomuserid_lastnotificationread` being aliased to the highlight count table, which clobbered highlight counts when setting a read marker. Contributed by @eleboucher
|
||||
@@ -478,6 +478,10 @@ pub(super) static MAPS: &[Descriptor] = &[
|
||||
name: "logintoken_expiresatuserid",
|
||||
..descriptor::RANDOM_SMALL
|
||||
},
|
||||
Descriptor {
|
||||
name: "roomuserid_lastnotificationread",
|
||||
..descriptor::RANDOM
|
||||
},
|
||||
Descriptor {
|
||||
name: "userroomid_highlightcount",
|
||||
..descriptor::RANDOM
|
||||
|
||||
@@ -27,7 +27,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: Services {
|
||||
globals: args.depend::<globals::Service>("globals"),
|
||||
|
||||
Reference in new issue
Block a user