Skip to main content

should_auto_sync

Function should_auto_sync 

Source
pub fn should_auto_sync(
    auto_sync: bool,
    logged_in: bool,
    last_auto_sync: Option<&str>,
    today: &str,
) -> bool
Expand description

Whether the auto-sync should run now: opt-in flag, logged in, and not already synced today (the debounce). Pure for unit testing.