25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Bugfix in mod_matrix_gw_room:get_sender_power_level

This commit is contained in:
Alexey Shchepin 2024-02-19 14:05:25 +03:00
parent c10f2a22b6
commit c9deea1f6f

View File

@ -2031,12 +2031,12 @@ get_sender_power_level(EventID, Data) ->
case {RoomVersion#room_version.implicit_room_creator, E} of case {RoomVersion#room_version.implicit_room_creator, E} of
{false, {false,
#event{type = ?ROOM_CREATE, state_key = <<"">>, #event{type = ?ROOM_CREATE, state_key = <<"">>,
json = #event{json = #{<<"content">> := json = #{<<"content">> :=
#{<<"creator">> := Sender}}}}} -> #{<<"creator">> := Sender}}}} ->
100; 100;
{true, {true,
#event{type = ?ROOM_CREATE, state_key = <<"">>, #event{type = ?ROOM_CREATE, state_key = <<"">>,
json = #event{sender = Sender}}} -> sender = Sender}} ->
100; 100;
_ -> _ ->
Acc Acc