Split Identifier struct into seperate types

This commit is contained in:
Pim Kunis 2021-08-19 16:31:03 +02:00
parent 24f0657710
commit 4b60a145ca
14 changed files with 283 additions and 196 deletions

View file

@ -204,8 +204,8 @@ defmodule MatrixServer.StateResolution.Authorization do
defp get_action_power_level(:invite, _), do: 50
defp get_action_power_level(:ban, %{"ban" => pl}), do: pl
defp get_action_power_level(:ban, _), do: 50
defp get_action_power_level(:redact, %{"redact" => pl}), do: pl
defp get_action_power_level(:redact, _), do: 50
# defp get_action_power_level(:redact, %{"redact" => pl}), do: pl
# defp get_action_power_level(:redact, _), do: 50
defp get_action_power_level(:kick, %{"kick" => pl}), do: pl
defp get_action_power_level(:kick, _), do: 50