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
{false,
#event{type = ?ROOM_CREATE, state_key = <<"">>,
json = #event{json = #{<<"content">> :=
#{<<"creator">> := Sender}}}}} ->
json = #{<<"content">> :=
#{<<"creator">> := Sender}}}} ->
100;
{true,
#event{type = ?ROOM_CREATE, state_key = <<"">>,
json = #event{sender = Sender}}} ->
sender = Sender}} ->
100;
_ ->
Acc