Skip to content

Commit

Permalink
Add comments on blocking/privacy IQ edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekwegr committed Aug 22, 2024
1 parent 09ba2fc commit 5d2244a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions big_tests/tests/mod_blocking_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ blocker_cant_send_to_blockee(Config) ->
client_gets_blocking_error(User1)
end).

%% This test checks an edge case where a blocking IQ is sent to another user
%% This isn't allowed by the XEP, but the test ensures MIM handles it correctly
iq_with_to_attribute_is_treated_as_regular_one(Config) ->
escalus:fresh_story(
Config, [{alice, 1}, {bob, 1}, {kate, 1}],
Expand Down
2 changes: 2 additions & 0 deletions big_tests/tests/privacy_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@ iq_reply_doesnt_crash_user_process(Config) ->
<<"Hello, Alice">>)
end).

%% This test checks an edge case where a privacy IQ is sent to another user
%% This isn't allowed by the XEP, but the test ensures MIM handles it correctly
iq_with_to_attribute_is_treated_as_regular_one(Config) ->
escalus:fresh_story(
Config, [{alice, 1}, {bob, 1}, {kate, 1}],
Expand Down

0 comments on commit 5d2244a

Please sign in to comment.