Allow locked iPhone Git actions (#51)
This commit is contained in:
@@ -1912,12 +1912,12 @@ pub fn set_selected_mobile_tab(tab: MobileTab) -> Result<(), MobilePreferenceErr
|
||||
|
||||
#[uniffi::export]
|
||||
pub fn mobile_home_operation(
|
||||
authentication: Arc<MobileAuthentication>,
|
||||
authentication: Option<Arc<MobileAuthentication>>,
|
||||
) -> Arc<MobileHomeOperation> {
|
||||
Arc::new(MobileHomeOperation {
|
||||
operation: mobile_home::MobileHomeOperation::new(Arc::clone(
|
||||
&authentication.authentication,
|
||||
)),
|
||||
operation: mobile_home::MobileHomeOperation::new(
|
||||
authentication.map(|authentication| Arc::clone(&authentication.authentication)),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1991,7 +1991,7 @@ pub fn replace_configured_mobile_application_token(
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{
|
||||
MobileHomeActionKind, MobileOnboardingErrorKind, MobileOnboardingFfiError,
|
||||
MobileHomeActionKind, MobileHomePhase, MobileOnboardingErrorKind, MobileOnboardingFfiError,
|
||||
MobileShellState, MobileTab, StorageHomeActionKind,
|
||||
};
|
||||
|
||||
@@ -2042,4 +2042,11 @@ mod tests {
|
||||
MobileHomeActionKind::Push
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn home_bridge_does_not_require_entry_authentication() {
|
||||
let operation = super::mobile_home_operation(None);
|
||||
assert_eq!(operation.progress().phase, MobileHomePhase::Validating);
|
||||
operation.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user