From 5828a1d72f97535621e928de051d3d59562191c0 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Thu, 21 Sep 2023 21:04:40 +1200 Subject: [PATCH] Save metadata edits locally, don't just publish them. --- src/ui/you/metadata.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/you/metadata.rs b/src/ui/you/metadata.rs index d4d606504..152ae1641 100644 --- a/src/ui/you/metadata.rs +++ b/src/ui/you/metadata.rs @@ -108,6 +108,9 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr .clicked() { app.editing_metadata = false; + let mut new_you = you.clone(); + new_you.metadata = Some(app.metadata.clone()); + let _ = GLOBALS.storage.write_person(&new_you, None); let _ = GLOBALS .to_overlord .send(ToOverlordMessage::PushMetadata(app.metadata.clone()));