From ad3f45d035d543518f48782de23cf49676441784 Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Fri, 12 Jan 2024 17:11:07 +0100 Subject: [PATCH] Update syncTime to be at least 1 --- src/Matrix/Settings.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Matrix/Settings.elm b/src/Matrix/Settings.elm index 7703695..6a85e2f 100644 --- a/src/Matrix/Settings.elm +++ b/src/Matrix/Settings.elm @@ -68,4 +68,4 @@ getSyncTime (Vault vault) = -} setSyncTime : Int -> Vault -> Vault setSyncTime time (Vault vault) = - Vault <| Envelope.mapSettings (\s -> { s | syncTime = time }) vault + Vault <| Envelope.mapSettings (\s -> { s | syncTime = max 1 time }) vault