From a0903d363b3bbf99ef9b3d3051abffd1ff2b3639 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Sat, 2 Sep 2023 08:41:21 +1200 Subject: [PATCH] When choosing Dm Chat from person menu, switch to that chat channel page --- src/ui/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 1fdc3b64..4b8e81b5 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -965,11 +965,13 @@ impl GossipUi { } if GLOBALS.signer.is_ready() { if ui.button("Send DM").clicked() { + let channel = DmChannel::new(&[person.pubkey]); app.replying_to = None; app.draft_repost = None; app.show_post_area = true; - app.draft_dm_channel = Some(DmChannel::new(&[person.pubkey])); + app.draft_dm_channel = Some(channel.clone()); app.draft_needs_focus = true; + app.set_page(Page::Feed(FeedKind::DmChat(channel))); } } if !person.followed && ui.button("Follow").clicked() {