From d6e9e034227538b8f900c252dd13df9a0693619e Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Fri, 29 Jan 2021 17:27:53 +0100 Subject: [PATCH] Remove queryid from MAM fin element According to xep, fin element is not supposed to have a queryid attribute. --- src/mod_mam.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 1345ffcd4..2c4f49f10 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -1286,9 +1286,11 @@ send(Msgs, Count, IsComplete, RSMOut = make_rsm_out(Msgs, Count), Result = if NS == ?NS_MAM_TMP -> #mam_query{xmlns = NS, id = QID, rsm = RSMOut}; - true -> + NS == ?NS_MAM_0 -> #mam_fin{xmlns = NS, id = QID, rsm = RSMOut, complete = IsComplete} + true -> + #mam_fin{xmlns = NS, rsm = RSMOut, complete = IsComplete} end, if NS /= ?NS_MAM_0 -> lists:foreach(