Skip to content

Commit

Permalink
Save metadata edits locally, don't just publish them.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Sep 23, 2023
1 parent 755c8bb commit 80d9dfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/you/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 80d9dfd

Please sign in to comment.