Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bcherry committed Oct 22, 2024
1 parent 13e254a commit 60bab84
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions livekit-ffi/src/conversion/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ impl From<proto::ContinualGatheringPolicy> for ContinualGatheringPolicy {

impl From<proto::IceServer> for IceServer {
fn from(value: proto::IceServer) -> Self {
Self { urls: value.urls, username: value.username, password: value.password }
Self {
urls: value.urls,
username: value.username.unwrap_or_default(),
password: value.password.unwrap_or_default(),
}
}
}

Expand All @@ -156,9 +160,7 @@ impl From<proto::RoomOptions> for RoomOptions {
fn from(value: proto::RoomOptions) -> Self {
let e2ee = value.e2ee.and_then(|opts| {
let encryption_type = opts.encryption_type();
let Some(provider_opts) = opts.key_provider_options else {
return None;
};
let provider_opts = opts.key_provider_options;

Some(E2eeOptions {
encryption_type: encryption_type.into(),
Expand Down

0 comments on commit 60bab84

Please sign in to comment.