Skip to content

Commit

Permalink
Apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Aug 24, 2021
1 parent 3921575 commit 205d1e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions big_tests/tests/inbox_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ init_per_suite(Config) ->
ok = dynamic_modules:ensure_modules(
domain_helper:host_type(mim), inbox_modules()),
ok = dynamic_modules:ensure_modules(
ct:get_config({hosts, mim, secondary_domain}),
ct:get_config({hosts, mim, secondary_host_type}),
[{mod_inbox,
[{aff_changes, false},
{remove_on_kicked, true},
Expand All @@ -213,7 +213,7 @@ end_per_suite(Config) ->
dynamic_modules:stop(
domain_helper:host_type(mim), mod_inbox),
dynamic_modules:stop(
ct:get_config({hosts, mim, secondary_domain}), mod_inbox),
ct:get_config({hosts, mim, secondary_host_type}), mod_inbox),
escalus:end_per_suite(Config).

init_per_group(one_to_one, Config) ->
Expand Down
4 changes: 0 additions & 4 deletions src/inbox/mod_inbox_muclight.erl
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ write_to_inbox(HostType, RoomUser, Remote, _Sender, Packet, Acc) ->
is_system_message(_HostType, #jid{lresource = <<>>}, _Receiver, _Packet) ->
true;
is_system_message(_HostType, #jid{lresource = _RoomUser}, _Receiver, _Packet) ->
false;
is_system_message(_HostType, Sender, Receiver, Packet) ->
?LOG_WARNING(#{what => inbox_muclight_unknown_message, packet => Packet,
sender => jid:to_binary(Sender), receiver => jid:to_binary(Receiver)}),
false.

-spec is_change_aff_message(jid:jid(), exml:element(), role()) -> boolean().
Expand Down

0 comments on commit 205d1e1

Please sign in to comment.