Skip to content

Commit

Permalink
On DM page, if key not unlocked, give warning link.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Sep 23, 2023
1 parent 267e5e8 commit 01952a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ui/feed/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
render_a_feed(app, ctx, frame, ui, feed, false, &pubkey.as_hex_string());
}
FeedKind::DmChat(channel) => {
if !GLOBALS.signer.is_ready() {
ui.add_space(10.0);
ui.horizontal_wrapped(|ui| {
ui.label("You need to ");
if ui.link("setup your identity").clicked() {
app.set_page(Page::YourKeys);
}
ui.label(" to see DMs.");
});
}

ui.horizontal(|ui| {
ui.label(format!("Private Chat with {}", channel.name()));
recompute_btn(app, ui);
Expand Down

0 comments on commit 01952a6

Please sign in to comment.