aboutsummaryrefslogtreecommitdiff
path: root/client-native-lib/src/instance.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client-native-lib/src/instance.rs')
-rw-r--r--client-native-lib/src/instance.rs6
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.."),