This commit is contained in:
Mike Dilger 2023-01-06 15:55:46 +13:00
parent 4dc747aeb6
commit 2dc24a2124

View File

@ -24,8 +24,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
ui.add(TextEdit::singleline(&mut app.nip35follow).hint_text("user@domain")); ui.add(TextEdit::singleline(&mut app.nip35follow).hint_text("user@domain"));
}); });
if ui.button("follow").clicked() { if ui.button("follow").clicked() {
let tx = GLOBALS.to_overlord.clone(); let _ = GLOBALS.to_overlord.send(ToOverlordMessage {
let _ = tx.send(ToOverlordMessage {
kind: "follow_nip35".to_string(), kind: "follow_nip35".to_string(),
json_payload: serde_json::to_string(&app.nip35follow).unwrap(), json_payload: serde_json::to_string(&app.nip35follow).unwrap(),
}); });
@ -47,8 +46,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
ui.add(TextEdit::singleline(&mut app.follow_pubkey_at_relay).hint_text("wss://...")); ui.add(TextEdit::singleline(&mut app.follow_pubkey_at_relay).hint_text("wss://..."));
}); });
if ui.button("follow").clicked() { if ui.button("follow").clicked() {
let tx = GLOBALS.to_overlord.clone(); let _ = GLOBALS.to_overlord.send(ToOverlordMessage {
let _ = tx.send(ToOverlordMessage {
kind: "follow_bech32".to_string(), kind: "follow_bech32".to_string(),
json_payload: serde_json::to_string(&( json_payload: serde_json::to_string(&(
&app.follow_bech32_pubkey, &app.follow_bech32_pubkey,
@ -75,8 +73,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
ui.add(TextEdit::singleline(&mut app.follow_pubkey_at_relay).hint_text("wss://...")); ui.add(TextEdit::singleline(&mut app.follow_pubkey_at_relay).hint_text("wss://..."));
}); });
if ui.button("follow").clicked() { if ui.button("follow").clicked() {
let tx = GLOBALS.to_overlord.clone(); let _ = GLOBALS.to_overlord.send(ToOverlordMessage {
let _ = tx.send(ToOverlordMessage {
kind: "follow_hexkey".to_string(), kind: "follow_hexkey".to_string(),
json_payload: serde_json::to_string(&( json_payload: serde_json::to_string(&(
&app.follow_hex_pubkey, &app.follow_hex_pubkey,