mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 19:16:02 -04:00
Fix PR comment
This commit is contained in:
@@ -72,10 +72,8 @@ impl Client {
|
||||
.client
|
||||
.login_username(&username, &password)
|
||||
.initial_device_display_name(&initial_device_name);
|
||||
let device_id_temp;
|
||||
if device_id.is_some() {
|
||||
device_id_temp = device_id.unwrap();
|
||||
builder = builder.device_id(&device_id_temp)
|
||||
if let Some(device_id) = device_id.as_ref() {
|
||||
builder = builder.device_id(device_id);
|
||||
}
|
||||
builder.send().await?;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user