mod_rest/mod_rest.lua
changeset 3828 a0b8ec44a36b
parent 3825 11272a3233ce
child 3829 802087d3155a
--- a/mod_rest/mod_rest.lua	Thu Jan 02 09:30:47 2020 +0100
+++ b/mod_rest/mod_rest.lua	Thu Jan 02 09:57:49 2020 +0100
@@ -182,6 +182,10 @@
 		local reply_needed = stanza.name == "iq";
 		local receipt;
 
+		if stanza.attr.type == "error" then
+			reply_needed = false;
+		end
+
 		if stanza.name == "message" and stanza.attr.id and stanza:get_child("urn:xmpp:receipts", "request") then
 			reply_needed = true;
 			receipt = st.stanza("received", { xmlns = "urn:xmpp:receipts", id = stanza.id });