MemoServ: add IGNORE
All checks were successful
CI / check (push) Successful in 3m34s

IGNORE ADD/DEL/LIST manages a per-account memo-ignore list; a memo from
an ignored account is silently dropped, and the sender is still told it
was sent so the ignore isn't revealed. New memo_ignore account field +
events, and a check in SEND.
This commit is contained in:
Jean Chevronnet 2026-07-16 00:10:34 +00:00
parent ccbbb91fda
commit b5e08c33cf
No known key found for this signature in database
13 changed files with 167 additions and 5 deletions

View file

@ -456,6 +456,18 @@ impl Store for Db {
fn memo_cancel(&mut self, account: &str, sender: &str) -> bool {
Db::memo_cancel(self, account, sender)
}
fn memo_ignore_add(&mut self, account: &str, target: &str) -> bool {
Db::memo_ignore_add(self, account, target)
}
fn memo_ignore_del(&mut self, account: &str, target: &str) -> bool {
Db::memo_ignore_del(self, account, target)
}
fn memo_ignores(&self, account: &str) -> Vec<String> {
Db::memo_ignores(self, account)
}
fn memo_is_ignored(&self, account: &str, sender: &str) -> bool {
Db::memo_is_ignored(self, account, sender)
}
fn memo_check(&self, account: &str, sender: &str) -> Option<(bool, u64)> {
Db::memo_check(self, account, sender)
}