Skip to content

Commit

Permalink
Code formatting muc_SUITE.erl
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekwegr committed Jul 14, 2023
1 parent 0bb0ec7 commit 08cd1fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions big_tests/tests/muc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3201,7 +3201,7 @@ disco_info_locked_room(Config) ->
Alice, stanza_to_room(escalus_stanza:iq_get(?NS_DISCO_INFO,[]), RoomName)),

%% THEN receives MUC features
Namespaces = [?NS_MUC, ?NS_MUC_STABLE_ID,<<"muc_public">>, <<"muc_temporary">>,
Namespaces = [?NS_MUC, ?NS_MUC_STABLE_ID, <<"muc_public">>, <<"muc_temporary">>,
<<"muc_open">>, <<"muc_semianonymous">>, <<"muc_moderated">>,
<<"muc_unsecured">>],
has_features(Stanza, Namespaces)
Expand Down Expand Up @@ -4862,22 +4862,22 @@ print(Element) ->
%Basic MUC protocol
stanza_groupchat_enter_room(Room, Nick) ->
stanza_to_room(
escalus_stanza:presence( <<"available">>,
[#xmlel{ name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]),
escalus_stanza:presence(<<"available">>,
[#xmlel{name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]),
Room, Nick).


stanza_groupchat_enter_room_no_nick(Room) ->
stanza_to_room(
escalus_stanza:presence( <<"available">>,
[#xmlel{ name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]),
escalus_stanza:presence(<<"available">>,
[#xmlel{name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]),
Room).

stanza_muc_enter_password_protected_room(Room, Nick, Password) ->
stanza_to_room(
escalus_stanza:presence( <<"available">>,
[#xmlel{ name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}],
children=[#xmlel{name = <<"password">>, children = [#xmlcdata{content=[Password]}]} ]}]),
escalus_stanza:presence(<<"available">>,
[#xmlel{name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}],
children=[#xmlel{name = <<"password">>, children = [#xmlcdata{content=[Password]}]} ]}]),
Room, Nick).

stanza_change_nick(Room, NewNick) ->
Expand Down

0 comments on commit 08cd1fc

Please sign in to comment.