summaryrefslogtreecommitdiff
path: root/client-native-lib/src/state.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-14 20:23:40 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-14 20:23:40 +0200
commit9b6b92d0cec58c3054c389f73fc86b96b79c17d1 (patch)
tree8077c8e6fb00179ca31cd2e6822bf0315419bac7 /client-native-lib/src/state.rs
parentc752fe962df841b0cb811b09f155568735e7380c (diff)
downloadkeks-meet-9b6b92d0cec58c3054c389f73fc86b96b79c17d1.tar
keks-meet-9b6b92d0cec58c3054c389f73fc86b96b79c17d1.tar.bz2
keks-meet-9b6b92d0cec58c3054c389f73fc86b96b79c17d1.tar.zst
extract lib
Diffstat (limited to 'client-native-lib/src/state.rs')
-rw-r--r--client-native-lib/src/state.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/client-native-lib/src/state.rs b/client-native-lib/src/state.rs
index baea90a..57c4b29 100644
--- a/client-native-lib/src/state.rs
+++ b/client-native-lib/src/state.rs
@@ -7,12 +7,11 @@ use webrtc::api::API;
use crate::{
crypto::Key,
peer::Peer,
- protocol::{self, ClientboundPacket, RelayMessage, RelayMessageWrapper, ServerboundPacket},
- Action, Args,
+ protocol::{self, ClientboundPacket, RelayMessage, RelayMessageWrapper, ServerboundPacket}, Config,
};
pub struct State {
- pub args: Args,
+ pub config: Config,
pub api: API,
pub key: Key,
pub my_id: RwLock<Option<usize>>,
@@ -40,7 +39,6 @@ impl State {
.write()
.await
.insert(id, Peer::create(self.clone(), id).await);
- if let Action::Send { .. } = &self.args.action {}
}
}
protocol::ClientboundPacket::ClientLeave { id: _ } => {}