Skip to content

Commit 5a0787b

Browse files
authored
Merge pull request #4539 from esl/muc-create-room-ns
Muc create room ns
2 parents 7ab5aeb + e659495 commit 5a0787b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

big_tests/tests/muc_SUITE.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5330,6 +5330,8 @@ was_room_destroyed(Query) ->
53305330
was_room_created(Stanza) ->
53315331
timer:sleep(?WAIT_TIME),
53325332
has_status_codes(Stanza, [<<"201">>, <<"110">>]),
5333+
Namespaces = exml_query:paths(Stanza, [{element, <<"x">>}, {attr, <<"xmlns">>}]),
5334+
true = lists:member(?NS_MUC_USER, Namespaces),
53335335
[<<"owner">>] = exml_query:paths(Stanza, [{element, <<"x">>},
53345336
{element, <<"item">>},
53355337
{attr, <<"affiliation">>}]),

src/muc/mod_muc_room.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,7 @@ send_new_presence_to_single(NJID, #user{jid = RealJID, nick = Nick, last_presenc
23132313
end,
23142314
Packet = jlib:append_subtags(
23152315
Presence,
2316-
[#xmlel{name = <<"x">>, attrs = #{<<"xmlns">> => ?NS_MUC},
2316+
[#xmlel{name = <<"x">>, attrs = #{<<"xmlns">> => ?NS_MUC_USER},
23172317
children = [#xmlel{name = <<"item">>, attrs = ItemAttrs,
23182318
children = ItemEls} | Status2]}]),
23192319
ejabberd_router:route(jid:replace_resource(StateData#state.jid, Nick),

0 commit comments

Comments
 (0)