Skip to content

Commit 2e41f64

Browse files
committed
mod_muc: Announce stable-id feature from XEP-0045 1.31, supported since long ago
1 parent 1b2a166 commit 2e41f64

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ defmodule Ejabberd.MixProject do
130130
{:p1_utils, "~> 1.0"},
131131
{:pkix, "~> 1.0"},
132132
{:stringprep, ">= 1.0.26"},
133-
{:xmpp, ">= 1.11.2"},
133+
{:xmpp, git: "https://github.com/processone/xmpp", ref: "7285aa7802bfa90bcefafdad3a342fbb93ce7eea", override: true},
134134
{:yconf, ">= 1.0.22"}]
135135
++ cond_deps()
136136
end

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"stringprep": {:hex, :stringprep, "1.0.33", "22f42866b4f6f3c238ea2b9cb6241791184ddedbab55e94a025511f46325f3ca", [:rebar3], [{:p1_utils, "1.0.28", [hex: :p1_utils, repo: "hexpm", optional: false]}], "hexpm", "96f8b30bc50887f605b33b46bca1d248c19a879319b8c482790e3b4da5da98c0"},
3535
"stun": {:hex, :stun, "1.2.21", "735855314ad22cb7816b88597d2f5ca22e24aa5e4d6010a0ef3affb33ceed6a5", [:rebar3], [{:fast_tls, "1.1.25", [hex: :fast_tls, repo: "hexpm", optional: false]}, {:p1_utils, "1.0.28", [hex: :p1_utils, repo: "hexpm", optional: false]}], "hexpm", "3d7fe8efb9d05b240a6aa9a6bf8b8b7bff2d802895d170443c588987dc1e12d9"},
3636
"unicode_util_compat": {:hex, :unicode_util_compat, "0.7.1", "a48703a25c170eedadca83b11e88985af08d35f37c6f664d6dcfb106a97782fc", [:rebar3], [], "hexpm", "b3a917854ce3ae233619744ad1e0102e05673136776fb2fa76234f3e03b23642"},
37-
"xmpp": {:hex, :xmpp, "1.11.2", "6ef43a6e5fb71506af7eccd05bbb6cccb58eb1856c539613e76fd9a5c4e936ba", [:rebar3], [{:ezlib, "~> 1.0.12", [hex: :ezlib, repo: "hexpm", optional: false]}, {:fast_tls, "~> 1.1.19", [hex: :fast_tls, repo: "hexpm", optional: false]}, {:fast_xml, "~> 1.1.51", [hex: :fast_xml, repo: "hexpm", optional: false]}, {:idna, "~> 6.0", [hex: :idna, repo: "hexpm", optional: false]}, {:p1_utils, "~> 1.0.26", [hex: :p1_utils, repo: "hexpm", optional: false]}, {:stringprep, "~> 1.0.29", [hex: :stringprep, repo: "hexpm", optional: false]}], "hexpm", "bb681644e15e3efc0008ab3a717944d67cf611a4b7e344382aa6367447bd52d2"},
37+
"xmpp": {:git, "https://github.com/processone/xmpp", "7285aa7802bfa90bcefafdad3a342fbb93ce7eea", [ref: "7285aa7802bfa90bcefafdad3a342fbb93ce7eea"]},
3838
"yconf": {:hex, :yconf, "1.0.22", "52a435f9b60ab1e13950dfe3f7131ecdd8b3d1ca72c44bf66fc74b4571027124", [:rebar3], [{:fast_yaml, "1.0.39", [hex: :fast_yaml, repo: "hexpm", optional: false]}], "hexpm", "aca83457ceabe70756484b5c87ba7b1955f511d499168687eaeaa7c300e857f1"},
3939
}

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
{stringprep, "~> 1.0.33", {git, "https://github.com/processone/stringprep", {tag, "1.0.33"}}},
7878
{if_var_true, stun,
7979
{stun, "~> 1.2.21", {git, "https://github.com/processone/stun", {tag, "1.2.21"}}}},
80-
{xmpp, "~> 1.11.2", {git, "https://github.com/processone/xmpp", {tag, "1.11.2"}}},
80+
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "7285aa7802bfa90bcefafdad3a342fbb93ce7eea"}},
8181
{yconf, "~> 1.0.22", {git, "https://github.com/processone/yconf", {tag, "1.0.22"}}}
8282
]}.
8383

rebar.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
{<<"stringprep">>,{pkg,<<"stringprep">>,<<"1.0.33">>},0},
2525
{<<"stun">>,{pkg,<<"stun">>,<<"1.2.21">>},0},
2626
{<<"unicode_util_compat">>,{pkg,<<"unicode_util_compat">>,<<"0.7.1">>},1},
27-
{<<"xmpp">>,{pkg,<<"xmpp">>,<<"1.11.2">>},0},
27+
{<<"xmpp">>,
28+
{git,"https://github.com/processone/xmpp",
29+
{ref,"7285aa7802bfa90bcefafdad3a342fbb93ce7eea"}},
30+
0},
2831
{<<"yconf">>,{pkg,<<"yconf">>,<<"1.0.22">>},0}]}.
2932
[
3033
{pkg_hash,[
@@ -53,7 +56,6 @@
5356
{<<"stringprep">>, <<"22F42866B4F6F3C238EA2B9CB6241791184DDEDBAB55E94A025511F46325F3CA">>},
5457
{<<"stun">>, <<"735855314AD22CB7816B88597D2F5CA22E24AA5E4D6010A0EF3AFFB33CEED6A5">>},
5558
{<<"unicode_util_compat">>, <<"A48703A25C170EEDADCA83B11E88985AF08D35F37C6F664D6DCFB106A97782FC">>},
56-
{<<"xmpp">>, <<"6EF43A6E5FB71506AF7ECCD05BBB6CCCB58EB1856C539613E76FD9A5C4E936BA">>},
5759
{<<"yconf">>, <<"52A435F9B60AB1E13950DFE3F7131ECDD8B3D1CA72C44BF66FC74B4571027124">>}]},
5860
{pkg_hash_ext,[
5961
{<<"base64url">>, <<"F9B3ADD4731A02A9B0410398B475B33E7566A695365237A6BDEE1BB447719F5C">>},
@@ -81,6 +83,5 @@
8183
{<<"stringprep">>, <<"96F8B30BC50887F605B33B46BCA1D248C19A879319B8C482790E3B4DA5DA98C0">>},
8284
{<<"stun">>, <<"3D7FE8EFB9D05B240A6AA9A6BF8B8B7BFF2D802895D170443C588987DC1E12D9">>},
8385
{<<"unicode_util_compat">>, <<"B3A917854CE3AE233619744AD1E0102E05673136776FB2FA76234F3E03B23642">>},
84-
{<<"xmpp">>, <<"BB681644E15E3EFC0008AB3A717944D67CF611A4B7E344382AA6367447BD52D2">>},
8586
{<<"yconf">>, <<"ACA83457CEABE70756484B5C87BA7B1955F511D499168687EAEAA7C300E857F1">>}]}
8687
].

src/mod_muc.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
%%%----------------------------------------------------------------------
2525
-module(mod_muc).
2626
-author('alexey@process-one.net').
27-
-protocol({xep, 45, '1.25', '0.5.0', "complete", ""}).
27+
-protocol({xep, 45, '1.35.2', '0.5.0', "complete", ""}).
2828
-protocol({xep, 249, '1.2', '0.5.0', "complete", ""}).
2929
-protocol({xep, 486, '0.1.0', '24.07', "complete", ""}).
3030
-ifndef(GEN_SERVER).
@@ -742,7 +742,8 @@ process_disco_info(#iq{type = get, from = From, to = To, lang = Lang,
742742
deny -> []
743743
end,
744744
Features = [?NS_DISCO_INFO, ?NS_DISCO_ITEMS,
745-
?NS_MUC, ?NS_VCARD, ?NS_MUCSUB, ?NS_MUC_UNIQUE
745+
?NS_MUC, ?NS_VCARD, ?NS_MUCSUB, ?NS_MUC_UNIQUE,
746+
?NS_MUC_STABLE_ID
746747
| RegisterFeatures ++ RSMFeatures ++ MAMFeatures ++ OccupantIdFeatures],
747748
Name = mod_muc_opt:name(ServerHost),
748749
Identity = #identity{category = <<"conference">>,

src/mod_muc_room.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4440,7 +4440,8 @@ make_disco_info(From, StateData) ->
44404440
Config = StateData#state.config,
44414441
ServerHost = StateData#state.server_host,
44424442
AccessRegister = mod_muc_opt:access_register(ServerHost),
4443-
Feats = [?NS_VCARD, ?NS_MUC, ?NS_DISCO_INFO, ?NS_DISCO_ITEMS,
4443+
Feats = [?NS_VCARD, ?NS_MUC, ?NS_MUC_STABLE_ID,
4444+
?NS_DISCO_INFO, ?NS_DISCO_ITEMS,
44444445
?NS_COMMANDS,
44454446
?NS_MESSAGE_MODERATE_0, ?NS_MESSAGE_MODERATE_1,
44464447
?NS_MESSAGE_RETRACT,

0 commit comments

Comments
 (0)