From 086ea872f5611d18d4616ea49fb236c64879a8a6 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 25 Jun 2023 20:50:02 +0200 Subject: rename to inroom --- client-native-gui/src/main.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'client-native-gui/src') diff --git a/client-native-gui/src/main.rs b/client-native-gui/src/main.rs index fb78947..fd22baa 100644 --- a/client-native-gui/src/main.rs +++ b/client-native-gui/src/main.rs @@ -74,21 +74,21 @@ async fn main() { enum App { Prejoin(String, String), - Joining(Option>), - Ingame(Ingame), + Joining(Option>), + Inroom(Inroom), } #[derive(Clone)] // TODO #[allow(dead_code)] -struct Ingame { +struct Inroom { pub instance: Arc, pub handler: Arc, pub chat: Arc>, } pub struct Handler { - k: RwLock>, + k: RwLock>, peers: RwLock>>>, } @@ -130,7 +130,7 @@ impl eframe::App for App { let secret = secret.clone(); let username = username.clone(); *self = Self::Joining(Some(tokio::spawn(async move { - Ingame::new(Config { + Inroom::new(Config { secret, username, signaling_uri: "wss://meet.metamuffin.org".to_string(), @@ -142,15 +142,15 @@ impl eframe::App for App { App::Joining(fut) => { ui.spinner(); if fut.as_ref().map(|f| f.is_finished()).unwrap_or(false) { - *self = Self::Ingame(block_on(fut.take().unwrap()).unwrap()); + *self = Self::Inroom(block_on(fut.take().unwrap()).unwrap()); } } - App::Ingame(x) => x.ui(ui), + App::Inroom(x) => x.ui(ui), }); } } -impl Ingame { +impl Inroom { pub async fn new(config: Config) -> Self { let handler = Arc::new(Handler::new()); let instance = Instance::new(config, handler.clone()).await; -- cgit v1.2.3-70-g09d2