# HG changeset patch # User Kim Alvefur # Date 1591784470 -7200 # Node ID 78ac5500a844a254ae485795c0beab07d6585291 # Parent cb5ea9d25cb2d6104389a367a0d4290f304c4b15 mod_pubsub_text_interface: Reflect XEP-0334 hints Helps testing without bothering your other clients. diff -r cb5ea9d25cb2 -r 78ac5500a844 mod_pubsub_text_interface/mod_pubsub_text_interface.lua --- a/mod_pubsub_text_interface/mod_pubsub_text_interface.lua Wed Jun 10 12:15:11 2020 +0200 +++ b/mod_pubsub_text_interface/mod_pubsub_text_interface.lua Wed Jun 10 12:21:10 2020 +0200 @@ -90,6 +90,14 @@ reply:tag("received", { xmlns = "urn:xmpp:receipts", id = stanza.attr.id }):up(); end + if stanza:get_child("no-copy", "urn:xmpp:hints") then + reply:tag("no-copy", { xmlns = "urn:xmpp:hints" }):up(); + end + + if stanza:get_child("no-store", "urn:xmpp:hints") then + reply:tag("no-store", { xmlns = "urn:xmpp:hints" }):up(); + end + module:send(reply); return true; end);