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 1/3] 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 From 462aa3a2dc0be615d160a3b72111b994a98fddac Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Fri, 12 Jan 2024 17:15:07 +0100 Subject: [PATCH 2/3] Fix test --- tests/Test/Matrix/Settings.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Test/Matrix/Settings.elm b/tests/Test/Matrix/Settings.elm index c1af931..d0bb441 100644 --- a/tests/Test/Matrix/Settings.elm +++ b/tests/Test/Matrix/Settings.elm @@ -27,7 +27,7 @@ settings = vault |> Matrix.Settings.setSyncTime sync |> Matrix.Settings.getSyncTime - |> Expect.equal sync + |> Expect.equal (max 1 sync) ) ] From 311de94c1f4d698b050cf85a7069f591219cec4d Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Fri, 12 Jan 2024 17:18:01 +0100 Subject: [PATCH 3/3] Bump to beta 2.1.1 --- elm.json | 2 +- src/Internal/Config/Default.elm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/elm.json b/elm.json index 78baf2d..f7e862c 100644 --- a/elm.json +++ b/elm.json @@ -3,7 +3,7 @@ "name": "noordstar/elm-matrix-sdk-beta", "summary": "Matrix SDK for instant communication. Unstable beta version for testing only.", "license": "EUPL-1.1", - "version": "2.1.0", + "version": "2.1.1", "exposed-modules": [ "Matrix", "Matrix.Event", diff --git a/src/Internal/Config/Default.elm b/src/Internal/Config/Default.elm index 835c430..ffbd273 100644 --- a/src/Internal/Config/Default.elm +++ b/src/Internal/Config/Default.elm @@ -23,7 +23,7 @@ will assume until overriden by the user. -} currentVersion : String currentVersion = - "beta 2.1.0" + "beta 2.1.1" {-| The default device name that is being communicated with the Matrix API.