Replace is_linked() by is_paired()
This commit is contained in:
parent
1d5869561a
commit
bb1e5afb2f
@ -276,14 +276,10 @@ pub fn create_new_device(birthday: u32, network_str: String) -> ApiResult<String
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn is_linking() -> ApiResult<bool> {
|
||||
pub fn is_paired() -> ApiResult<bool> {
|
||||
let local_device = lock_local_device()?;
|
||||
|
||||
if local_device.is_linked() || local_device.is_linking() {
|
||||
Ok(true)
|
||||
} else {
|
||||
Ok(false)
|
||||
}
|
||||
Ok(local_device.get_pairing_commitment().is_some())
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
|
Loading…
x
Reference in New Issue
Block a user