Push /send-message, /set-account-data, /sync and /sync to spec versions 1.7 and 1.8

main
Bram van den Heuvel 2023-09-22 16:18:15 +02:00
parent 8816f0e837
commit f5f5c14e10
4 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,8 @@ sendMessageEvent context input =
|> VC.sameForVersion "v1.4" |> VC.sameForVersion "v1.4"
|> VC.sameForVersion "v1.5" |> VC.sameForVersion "v1.5"
|> VC.sameForVersion "v1.6" |> VC.sameForVersion "v1.6"
|> VC.sameForVersion "v1.7"
|> VC.sameForVersion "v1.8"
|> VC.mostRecentFromVersionList (Context.getVersions context) |> VC.mostRecentFromVersionList (Context.getVersions context)
|> Maybe.withDefault (always <| always <| Task.fail X.UnsupportedSpecVersion) |> Maybe.withDefault (always <| always <| Task.fail X.UnsupportedSpecVersion)
|> (|>) input |> (|>) input

View File

@ -32,6 +32,8 @@ setAccountData context input =
|> VC.sameForVersion "v1.4" |> VC.sameForVersion "v1.4"
|> VC.sameForVersion "v1.5" |> VC.sameForVersion "v1.5"
|> VC.sameForVersion "v1.6" |> VC.sameForVersion "v1.6"
|> VC.sameForVersion "v1.7"
|> VC.sameForVersion "v1.8"
|> VC.mostRecentFromVersionList (Context.getVersions context) |> VC.mostRecentFromVersionList (Context.getVersions context)
|> Maybe.withDefault (always <| always <| Task.fail X.UnsupportedSpecVersion) |> Maybe.withDefault (always <| always <| Task.fail X.UnsupportedSpecVersion)
|> (|>) input |> (|>) input

View File

@ -25,6 +25,8 @@ sync context input =
} }
|> VC.sameForVersion "v1.5" |> VC.sameForVersion "v1.5"
|> VC.sameForVersion "v1.6" |> VC.sameForVersion "v1.6"
|> VC.sameForVersion "v1.7"
|> VC.sameForVersion "v1.8"
|> VC.mostRecentFromVersionList (Context.getVersions context) |> VC.mostRecentFromVersionList (Context.getVersions context)
|> Maybe.withDefault (always <| always <| Task.fail X.UnsupportedSpecVersion) |> Maybe.withDefault (always <| always <| Task.fail X.UnsupportedSpecVersion)
|> (|>) input |> (|>) input

View File

@ -35,6 +35,8 @@ whoAmI context input =
|> VC.sameForVersion "v1.4" |> VC.sameForVersion "v1.4"
|> VC.sameForVersion "v1.5" |> VC.sameForVersion "v1.5"
|> VC.sameForVersion "v1.6" |> VC.sameForVersion "v1.6"
|> VC.sameForVersion "v1.7"
|> VC.sameForVersion "v1.8"
|> VC.mostRecentFromVersionList (Context.getVersions context) |> VC.mostRecentFromVersionList (Context.getVersions context)
|> Maybe.withDefault (always <| always <| Task.fail X.UnsupportedSpecVersion) |> Maybe.withDefault (always <| always <| Task.fail X.UnsupportedSpecVersion)
|> (|>) input |> (|>) input