mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
mtxchat ensure longer keys are properly replaced
This commit is contained in:
parent
4453d9629f
commit
0fbd331f37
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ impl<'a> MtxChat<'a> {
|
|||
))
|
||||
} else {
|
||||
log::info!("set '{}' = '{}'", key, value);
|
||||
// delete key first to ensure data in a prior longer key is gone
|
||||
self.pddb.delete_key(MTXCHAT_STATE, key, None).ok();
|
||||
match self
|
||||
.pddb
|
||||
.get(MTXCHAT_STATE, key, None, true, true, None, None::<fn()>)
|
||||
|
|
|
|||
Loading…
Reference in a new issue