mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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 {
|
} else {
|
||||||
log::info!("set '{}' = '{}'", key, value);
|
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
|
match self
|
||||||
.pddb
|
.pddb
|
||||||
.get(MTXCHAT_STATE, key, None, true, true, None, None::<fn()>)
|
.get(MTXCHAT_STATE, key, None, true, true, None, None::<fn()>)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue