mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Bugfix in mod_matrix_gw_room:get_sender_power_level
This commit is contained in:
parent
c10f2a22b6
commit
c9deea1f6f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user