diff --git a/examples/wgpu_room/src/service.rs b/examples/wgpu_room/src/service.rs index 9d3a2627..a075efb2 100644 --- a/examples/wgpu_room/src/service.rs +++ b/examples/wgpu_room/src/service.rs @@ -122,14 +122,14 @@ async fn service_task(inner: Arc, mut cmd_rx: mpsc::UnboundedRecei key_provider, }); + let mut options = RoomOptions::default(); + options.auto_subscribe = auto_subscribe; + options.e2ee = e2ee; + let res = Room::connect( &url, &token, - RoomOptions { - auto_subscribe, - e2ee, - ..Default::default() - }, + options, ) .await;