diff options
author | metamuffin <metamuffin@disroot.org> | 2022-12-11 20:58:30 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-12-11 20:58:30 +0100 |
commit | 86ae7283820e0f12d6d40d68d272b1593c2239e8 (patch) | |
tree | c2d97b06b730ba86faaf5b6f8ca19258a52b7742 /client-native-lib/src/instance.rs | |
parent | 43bd492ffe61dfec82c172f3eeda869809aa0932 (diff) | |
download | keks-meet-86ae7283820e0f12d6d40d68d272b1593c2239e8.tar keks-meet-86ae7283820e0f12d6d40d68d272b1593c2239e8.tar.bz2 keks-meet-86ae7283820e0f12d6d40d68d272b1593c2239e8.tar.zst |
chat (nattive gui)
Diffstat (limited to 'client-native-lib/src/instance.rs')
-rw-r--r-- | client-native-lib/src/instance.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client-native-lib/src/instance.rs b/client-native-lib/src/instance.rs index 3edf50a..324c4af 100644 --- a/client-native-lib/src/instance.rs +++ b/client-native-lib/src/instance.rs @@ -120,14 +120,14 @@ impl Instance { } } - pub async fn send_relay(&self, recipient: usize, inner: RelayMessage) { - debug!("(relay) -> ({recipient}) {inner:?}"); + pub async fn send_relay(&self, recipient: Option<usize>, inner: RelayMessage) { + debug!("(relay) -> ({recipient:?}) {inner:?}"); self.conn .send .write() .await .send(ServerboundPacket::Relay { - recipient: Some(recipient), + recipient, message: self.key.encrypt( &serde_json::to_string(&RelayMessageWrapper { sender: self.my_id.read().await.expect("not ready to relay yet.."), |