]> granicus.if.org Git - ejabberd/commitdiff
Announce support for stanza IDs
authorHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 14 Nov 2017 23:18:25 +0000 (00:18 +0100)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 14 Nov 2017 23:18:25 +0000 (00:18 +0100)
Announce the namespace for stanza IDs as per XEP-0359 v0.5.0.

src/mod_mam.erl
src/mod_muc_room.erl

index 7c7107715dc6b5a170370527ba6aba1b2b47de36..3d3d9a2bc499668117a8010934b2fd30e369ea30 100644 (file)
@@ -27,6 +27,7 @@
 
 -protocol({xep, 313, '0.6.1'}).
 -protocol({xep, 334, '0.2'}).
+-protocol({xep, 359, '0.5.0'}).
 
 -behaviour(gen_mod).
 
@@ -453,7 +454,8 @@ disco_sm_features(empty, From, To, Node, Lang) ->
 disco_sm_features({result, OtherFeatures},
                  #jid{luser = U, lserver = S},
                  #jid{luser = U, lserver = S}, <<"">>, _Lang) ->
-    {result, [?NS_MAM_TMP, ?NS_MAM_0, ?NS_MAM_1, ?NS_MAM_2 | OtherFeatures]};
+    {result, [?NS_MAM_TMP, ?NS_MAM_0, ?NS_MAM_1, ?NS_MAM_2, ?NS_SID_0 |
+             OtherFeatures]};
 disco_sm_features(Acc, _From, _To, _Node, _Lang) ->
     Acc.
 
index 67a1a2bd391942e0745d73d58db8f7a9b4a05451..bafa938dc0be85842949d5edbb89b3d66e3bec1b 100644 (file)
@@ -3617,7 +3617,7 @@ process_iq_disco_info(_From, #iq{type = get, lang = Lang}, StateData) ->
        ++ case {gen_mod:is_loaded(StateData#state.server_host, mod_mam),
                 Config#config.mam} of
               {true, true} ->
-                  [?NS_MAM_TMP, ?NS_MAM_0, ?NS_MAM_1, ?NS_MAM_2];
+                  [?NS_MAM_TMP, ?NS_MAM_0, ?NS_MAM_1, ?NS_MAM_2, ?NS_SID_0];
               _ ->
                   []
           end,