Comparison

mod_pubsub_text_interface/mod_pubsub_text_interface.lua @ 4042:78ac5500a844

mod_pubsub_text_interface: Reflect XEP-0334 hints Helps testing without bothering your other clients.
author Kim Alvefur <zash@zash.se>
date Wed, 10 Jun 2020 12:21:10 +0200
parent 4041:cb5ea9d25cb2
child 4234:f31eac6b2e9c
comparison
equal deleted inserted replaced
4041:cb5ea9d25cb2 4042:78ac5500a844
88 88
89 if stanza:get_child("request", "urn:xmpp:receipts") then 89 if stanza:get_child("request", "urn:xmpp:receipts") then
90 reply:tag("received", { xmlns = "urn:xmpp:receipts", id = stanza.attr.id }):up(); 90 reply:tag("received", { xmlns = "urn:xmpp:receipts", id = stanza.attr.id }):up();
91 end 91 end
92 92
93 if stanza:get_child("no-copy", "urn:xmpp:hints") then
94 reply:tag("no-copy", { xmlns = "urn:xmpp:hints" }):up();
95 end
96
97 if stanza:get_child("no-store", "urn:xmpp:hints") then
98 reply:tag("no-store", { xmlns = "urn:xmpp:hints" }):up();
99 end
100
93 module:send(reply); 101 module:send(reply);
94 return true; 102 return true;
95 end); 103 end);