Update deps and switch to master sdk

This commit is contained in:
Julian Sparber 2022-03-02 11:07:23 +01:00
parent 60a0207ee2
commit ad1e5690b5
3 changed files with 330 additions and 321 deletions

646
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -59,8 +59,7 @@ package = "libadwaita"
version = "0.1.0"
[dependencies.matrix-sdk]
git = "https://github.com/jsparber/matrix-rust-sdk.git"
branch = "enable_ruma_unstable_pre_spec"
git = "https://github.com/matrix-org/matrix-rust-sdk.git"
features = [
"socks",
"encryption",

View file

@ -54,7 +54,7 @@ impl Camera {
let proxy = camera::CameraProxy::new(&self.connection().await?).await?;
proxy.access_camera().await?;
let stream_fd = proxy.open_pipe_wire_remote().await?;
let node_id = camera::pipewire_node_id(stream_fd).await.ok();
let node_id = camera::pipewire_node_id(stream_fd).await.ok().flatten();
Ok((stream_fd, node_id))
}