Skip to content

Commit

Permalink
Fix copying note content from DMs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Dec 17, 2024
1 parent 296b42a commit 8268c81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gossip-bin/src/ui/feed/note/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,9 @@ fn note_actions(
copy_items.push(MoreMenuItem::Button(MoreMenuButton::new(
"to Clipboard",
Box::new(|ui, _| {
ui.output_mut(|o| o.copied_text = note.event.content.clone());
ui.output_mut(|o| o.copied_text = note.shattered_content.allocated.clone());
// this one doesn't work for DMs:
// ui.output_mut(|o| o.copied_text = note.event.content.clone());
}),
)));

Expand Down

0 comments on commit 8268c81

Please sign in to comment.