Skip to content

Commit 983c016

Browse files
committed
Update xmpp to get XEP-0317 Hats namespaces version 0.2.0
1 parent 8a7e955 commit 983c016

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

mix.exs

+1-1
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, git: "https://github.com/processone/xmpp", ref: "64d6d292015a7ec4de0b9e963d20b7ac5b63c7f0", override: true},
133+
{:xmpp, git: "https://github.com/processone/xmpp", ref: "e295055dd1cb3dafb4b3134bc7462a775ff16b5c", override: true},
134134
{:yconf, git: "https://github.com/processone/yconf", ref: "9682a6025ed543eedf34637e4cfcc66837074af6", override: true}]
135135
++ cond_deps()
136136
end

mix.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"stringprep": {:hex, :stringprep, "1.0.30", "46cf0ff631b3e7328f61f20b454d59428d87738f25d709798b5dcbb9b83c23f1", [:rebar3], [{:p1_utils, "1.0.26", [hex: :p1_utils, repo: "hexpm", optional: false]}], "hexpm", "f6fc9b3384a03877830f89b2f38580caf3f4a27448a4a333d6a8c3975c220b9a"},
3535
"stun": {:hex, :stun, "1.2.15", "eec510af6509201ff97f1f2c87b7977c833bf29c04e985383370ec21f04e4ccf", [:rebar3], [{:fast_tls, "1.1.22", [hex: :fast_tls, repo: "hexpm", optional: false]}, {:p1_utils, "1.0.26", [hex: :p1_utils, repo: "hexpm", optional: false]}], "hexpm", "f6d8a541a29fd13f2ce658b676c0cc661262b96e045b52def1644b75ebc0edef"},
3636
"unicode_util_compat": {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"},
37-
"xmpp": {:git, "https://github.com/processone/xmpp", "64d6d292015a7ec4de0b9e963d20b7ac5b63c7f0", [ref: "64d6d292015a7ec4de0b9e963d20b7ac5b63c7f0"]},
37+
"xmpp": {:git, "https://github.com/processone/xmpp", "e295055dd1cb3dafb4b3134bc7462a775ff16b5c", [ref: "e295055dd1cb3dafb4b3134bc7462a775ff16b5c"]},
3838
"yconf": {:git, "https://github.com/processone/yconf", "9682a6025ed543eedf34637e4cfcc66837074af6", [ref: "9682a6025ed543eedf34637e4cfcc66837074af6"]},
3939
}

rebar.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
{stringprep, "~> 1.0.29", {git, "https://github.com/processone/stringprep", {tag, "1.0.30"}}},
7878
{if_var_true, stun,
7979
{stun, "~> 1.2.12", {git, "https://github.com/processone/stun", {tag, "1.2.15"}}}},
80-
{xmpp, "~> 1.9.2", {git, "https://github.com/processone/xmpp", "64d6d292015a7ec4de0b9e963d20b7ac5b63c7f0"}},
80+
{xmpp, "~> 1.9.2", {git, "https://github.com/processone/xmpp", "e295055dd1cb3dafb4b3134bc7462a775ff16b5c"}},
8181
{yconf, "~> 1.0.17", {git, "https://github.com/processone/yconf", "9682a6025ed543eedf34637e4cfcc66837074af6"}}
8282
]}.
8383

rebar.lock

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
{<<"stringprep">>,{pkg,<<"stringprep">>,<<"1.0.30">>},0},
2525
{<<"stun">>,{pkg,<<"stun">>,<<"1.2.15">>},0},
2626
{<<"unicode_util_compat">>,{pkg,<<"unicode_util_compat">>,<<"0.7.0">>},1},
27-
{<<"xmpp">>,
28-
{git,"https://github.com/processone/xmpp",
29-
{ref,"64d6d292015a7ec4de0b9e963d20b7ac5b63c7f0"}},
30-
0},
3127
{<<"yconf">>,
3228
{git,"https://github.com/processone/yconf",
3329
{ref,"9682a6025ed543eedf34637e4cfcc66837074af6"}},

src/mod_muc.erl

+2
Original file line numberDiff line numberDiff line change
@@ -1770,8 +1770,10 @@ mod_doc() ->
17701770
"The default value is an empty string.")}},
17711771
{enable_hats,
17721772
#{value => "true | false",
1773+
note => "improved in 25.xx",
17731774
desc =>
17741775
?T("Allow extended roles as defined in XEP-0317 Hats. "
1776+
"Check the _`../../tutorials/muc-hats.md|MUC Hats`_ tutorial. "
17751777
"The default value is 'false'.")}},
17761778
{lang,
17771779
#{value => ?T("Language"),

src/mod_muc_room.erl

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
-author('[email protected]').
2929

30-
-protocol({xep, 317, '0.1', '21.12', "complete", "conversejs/prosody compatible"}).
30+
-protocol({xep, 317, '0.2.0', '25.xx', "complete", ""}).
3131
-protocol({xep, 410, '1.1.0', '18.12', "complete", ""}).
3232

3333
-behaviour(p1_fsm).
@@ -79,9 +79,9 @@
7979
-define(MAX_USERS_DEFAULT_LIST,
8080
[5, 10, 20, 30, 50, 100, 200, 500, 1000, 2000, 5000]).
8181

82-
-define(MUC_HAT_ADD_CMD, <<"http://prosody.im/protocol/hats#add">>).
83-
-define(MUC_HAT_REMOVE_CMD, <<"http://prosody.im/protocol/hats#remove">>).
84-
-define(MUC_HAT_LIST_CMD, <<"p1:hats#list">>).
82+
-define(MUC_HAT_ADD_CMD, <<"urn:xmpp:hats:commands:don">>).
83+
-define(MUC_HAT_REMOVE_CMD, <<"urn:xmpp:hats:commands:doff">>).
84+
-define(MUC_HAT_LIST_CMD, <<"urn:xmpp:hats:commands:dlist">>).
8585
-define(MAX_HATS_USERS, 100).
8686
-define(MAX_HATS_PER_USER, 10).
8787
-define(CLEAN_ROOM_TIMEOUT, 30000).

0 commit comments

Comments
 (0)