aboutsummaryrefslogtreecommitdiff
path: root/src/mail/user.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-17 15:02:43 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-17 15:02:43 +0100
commite92dc35564e91ce4e6a8defa9e8b52eef9e55fae (patch)
treebf33563e7858c5b8b6865c89558b2e0d305b3dec /src/mail/user.rs
parent4a33ac2265dae0e8fd1f7fbaec54ab7120334cbe (diff)
downloadaerogramme-e92dc35564e91ce4e6a8defa9e8b52eef9e55fae.tar.gz
aerogramme-e92dc35564e91ce4e6a8defa9e8b52eef9e55fae.zip
fix orphan storage compatibility
Diffstat (limited to 'src/mail/user.rs')
-rw-r--r--src/mail/user.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/user.rs b/src/mail/user.rs
index 7011dcc..7a3e5c7 100644
--- a/src/mail/user.rs
+++ b/src/mail/user.rs
@@ -306,7 +306,7 @@ impl User {
) -> Result<()> {
let list_blob = seal_serialize(list, &self.creds.keys.master)?;
let rref = match ct {
- Some(x) => self.k2v.from_orphan(x),
+ Some(x) => self.k2v.from_orphan(x).expect("Source & target must be same storage"),
None => self.k2v.row(MAILBOX_LIST_PK, MAILBOX_LIST_SK),
};
rref.set_value(list_blob).push().await?;