[retention] Add setting for auto removing notifications
Some checks failed
CI / Rustfmt (push) Successful in 35s
CI / Flatpak (push) Failing after 6s

This commit is contained in:
2026-03-19 20:52:05 -04:00
parent 750cba8351
commit c112c8dd47
7 changed files with 116 additions and 10 deletions

View File

@ -232,7 +232,11 @@ impl SubscriptionActor {
// Store in database
let already_stored: bool = {
let json_ev = &serde_json::to_string(&msg).unwrap();
match self.env.db.insert_message(&self.model.server, json_ev) {
match self
.env
.db
.insert_message(&self.model.server, &self.model.topic, json_ev)
{
Err(Error::DuplicateMessage) => {
warn!(topic=?self.model.topic, "received duplicate message");
true