25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Remove queryid from MAM fin element

According to xep, fin element is not supposed to have a queryid attribute.
This commit is contained in:
Paul Fariello 2021-01-29 17:27:53 +01:00
parent fca41796c0
commit d6e9e03422

View File

@ -1286,9 +1286,11 @@ send(Msgs, Count, IsComplete,
RSMOut = make_rsm_out(Msgs, Count), RSMOut = make_rsm_out(Msgs, Count),
Result = if NS == ?NS_MAM_TMP -> Result = if NS == ?NS_MAM_TMP ->
#mam_query{xmlns = NS, id = QID, rsm = RSMOut}; #mam_query{xmlns = NS, id = QID, rsm = RSMOut};
true -> NS == ?NS_MAM_0 ->
#mam_fin{xmlns = NS, id = QID, rsm = RSMOut, #mam_fin{xmlns = NS, id = QID, rsm = RSMOut,
complete = IsComplete} complete = IsComplete}
true ->
#mam_fin{xmlns = NS, rsm = RSMOut, complete = IsComplete}
end, end,
if NS /= ?NS_MAM_0 -> if NS /= ?NS_MAM_0 ->
lists:foreach( lists:foreach(