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:
parent
c10f2a22b6
commit
c9deea1f6f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user