diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_mam.erl | 4 | ||||
-rw-r--r-- | src/mod_muc_room.erl | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 7c7107715..3d3d9a2bc 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -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. diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 67a1a2bd3..bafa938dc 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -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, |