-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update version of XEP-0045: Multi-User Chat #4054
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4054 +/- ##
==========================================
- Coverage 83.85% 83.83% -0.03%
==========================================
Files 526 526
Lines 33133 33159 +26
==========================================
+ Hits 27783 27798 +15
- Misses 5350 5361 +11
☔ View full report in Codecov by Sentry. |
1c5368a
to
743cc38
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
48121cd
to
0bb0ec7
Compare
This comment was marked as outdated.
This comment was marked as outdated.
big_tests/tests/muc_SUITE.erl
Outdated
stanza_groupchat_enter_room(Room, Nick) -> | ||
stanza_to_room(escalus_stanza:presence(<<"available">>), Room, Nick). | ||
stanza_to_room( | ||
escalus_stanza:presence( <<"available">>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
escalus_stanza:presence( <<"available">>, | |
escalus_stanza:presence(<<"available">>, |
big_tests/tests/muc_SUITE.erl
Outdated
stanza_to_room(escalus_stanza:presence(<<"available">>), Room). | ||
|
||
stanza_to_room( | ||
escalus_stanza:presence( <<"available">>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
escalus_stanza:presence( <<"available">>, | |
escalus_stanza:presence(<<"available">>, |
big_tests/tests/muc_SUITE.erl
Outdated
stanza_to_room(escalus_stanza:presence(<<"available">>), Room, Nick). | ||
stanza_to_room( | ||
escalus_stanza:presence( <<"available">>, | ||
[#xmlel{ name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[#xmlel{ name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), | |
[#xmlel{name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), |
big_tests/tests/muc_SUITE.erl
Outdated
|
||
stanza_to_room( | ||
escalus_stanza:presence( <<"available">>, | ||
[#xmlel{ name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[#xmlel{ name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), | |
[#xmlel{name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), |
big_tests/tests/muc_SUITE.erl
Outdated
@@ -3131,8 +3201,9 @@ disco_info_locked_room(Config) -> | |||
Alice, stanza_to_room(escalus_stanza:iq_get(?NS_DISCO_INFO,[]), RoomName)), | |||
|
|||
%% THEN receives MUC features | |||
Namespaces = [?NS_MUC, <<"muc_public">>, <<"muc_temporary">>, <<"muc_open">>, | |||
<<"muc_semianonymous">>, <<"muc_moderated">>, <<"muc_unsecured">>], | |||
Namespaces = [?NS_MUC, ?NS_MUC_STABLE_ID,<<"muc_public">>, <<"muc_temporary">>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Namespaces = [?NS_MUC, ?NS_MUC_STABLE_ID,<<"muc_public">>, <<"muc_temporary">>, | |
Namespaces = [?NS_MUC, ?NS_MUC_STABLE_ID, <<"muc_public">>, <<"muc_temporary">>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I've added minor comments
big_tests/tests/muc_SUITE.erl
Outdated
#xmlel{name = <<"message">>, | ||
attrs = [{<<"to">>, To}, {<<"type">>, <<"chat">>}], | ||
children = [#xmlel{name = <<"body">>, | ||
children = [#xmlcdata{content = Msg}]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
children = [#xmlcdata{content = Msg}]}, | |
children = [#xmlcdata{content = Msg}]}, |
big_tests/tests/muc_SUITE.erl
Outdated
children = [#xmlel{name = <<"body">>, | ||
children = [#xmlcdata{content = Msg}]}, | ||
#xmlel{name = <<"x">>, | ||
attrs = [{<<"xmlns">>, <<"http://jabber.org/protocol/muc#user">>}]}]}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attrs = [{<<"xmlns">>, <<"http://jabber.org/protocol/muc#user">>}]}]}. | |
attrs = [{<<"xmlns">>, <<"http://jabber.org/protocol/muc#user">>}]}]}. |
This comment was marked as outdated.
This comment was marked as outdated.
big_tests/tests/muc_SUITE.erl
Outdated
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]}]} ]}]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
children=[#xmlel{name = <<"password">>, children = [#xmlcdata{content=[Password]}]} ]}]), | |
children = [#xmlel{name = <<"password">>, children = [#xmlcdata{content=[Password]}]} ]}]), |
big_tests/tests/muc_SUITE.erl
Outdated
stanza_to_room(escalus_stanza:presence(<<"available">>), Room, Nick). | ||
stanza_to_room( | ||
escalus_stanza:presence(<<"available">>, | ||
[#xmlel{name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[#xmlel{name = <<"x">>, attrs=[{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), | |
[#xmlel{name = <<"x">>, attrs = [{<<"xmlns">>, <<"http://jabber.org/protocol/muc">>}]}]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After rereading the file, I've found some more minor issues.
08cd1fc
to
0d9d690
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
small_tests_24 / small_tests / 0d9d690 small_tests_25 / small_tests / 0d9d690 small_tests_25_arm64 / small_tests / 0d9d690 ldap_mnesia_24 / ldap_mnesia / 0d9d690 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 0d9d690 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 0d9d690 ldap_mnesia_25 / ldap_mnesia / 0d9d690 dynamic_domains_mysql_redis_25 / mysql_redis / 0d9d690 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 0d9d690 pgsql_mnesia_24 / pgsql_mnesia / 0d9d690 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 0d9d690 internal_mnesia_25 / internal_mnesia / 0d9d690 pgsql_mnesia_25 / pgsql_mnesia / 0d9d690 mssql_mnesia_25 / odbc_mssql_mnesia / 0d9d690 mysql_redis_25 / mysql_redis / 0d9d690 |
This PR updates implementation of MUC.
The changes between version 1.25 and 1.34.5 include:
<x/>
element in MUC-PMsid
attributeLink to the full list of changes: https://xmpp.org/extensions/xep-0045.html#appendix-revs