diff --git a/tui/src/main.rs b/tui/src/main.rs index bbecf55..5367bbd 100644 --- a/tui/src/main.rs +++ b/tui/src/main.rs @@ -10,7 +10,6 @@ use std::path::PathBuf; use clap::{Arg, App}; use cursive::Cursive; -use cursive::views::{Dialog, TextView}; use cursive::menu::MenuTree; use cursive::event::Key; @@ -84,7 +83,8 @@ async fn main() { // open up search able list of channels // choose from that list of channels which one you want to see - if let Some(channels) = http::fetch_channels(&server.ip).await { + // NOTE: not passing the domain as the IP is resolved on server join + if let Some(channels) = http::fetch_channels(&server.ip, server.port).await { // add a bunch of actionable leafs to our sub tree for channel in channels { app.menubar().find_subtree(name.as_ref()).unwrap().add_leaf(channel.name.clone(), move |s| { @@ -96,4 +96,4 @@ async fn main() { } app.run(); -} \ No newline at end of file +}