# HG changeset patch # User Kim Alvefur # Date 1565370118 -7200 # Node ID 9980ea72ff91dbd67685befc5f750998b788f948 # Parent 740870196b97068e39304e8f7f59bc812e0431bf mod_pubsub_text_interface: Respond to receipts Because why not? diff -r 740870196b97 -r 9980ea72ff91 mod_pubsub_text_interface/mod_pubsub_text_interface.lua --- a/mod_pubsub_text_interface/mod_pubsub_text_interface.lua Fri Aug 09 19:00:35 2019 +0200 +++ b/mod_pubsub_text_interface/mod_pubsub_text_interface.lua Fri Aug 09 19:01:58 2019 +0200 @@ -78,6 +78,12 @@ else reply:body("Unknown command. `help` to list commands."); end + reply:reset(); + + if stanza:get_child("request", "urn:xmpp:receipts") then + reply:tag("received", { xmlns = "urn:xmpp:receipts", id = stanza.attr.id }):up(); + end + module:send(reply); return true; end);