Verified Commit 051fdad4 authored by Nicolas's avatar Nicolas

add unsupported room version error mapping

parent 01c2040f
......@@ -14,9 +14,10 @@ defmodule PlasmaWeb.Controllers.MatrixApi.MatrixController do
{"empty_user_id_or_password"} -> conn |> json_error(:empty_user_id_or_password)
{"invalid_user_id", _} -> conn |> json_error(:m_invalid_username)
{"bad_type", field} -> conn |> json_error({:m_bad_type, field})
{"unsupported_room_version"} -> conn |> json_error(:m_unsupported_room_version)
_ -> conn |> json_error(:bad_json)
end
end
end
end
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment