comparison mod_pubsub_text_interface/mod_pubsub_text_interface.lua @ 4234:f31eac6b2e9c

mod_pubsub_text_interface: Remove receipt handling (thanks meaz) This apparenly breaks Gajim, which seems to stop processing of the reply message after noting the receipt.
author Kim Alvefur <zash@zash.se>
date Thu, 05 Nov 2020 21:51:48 +0100
parents 78ac5500a844
children 725768d83830
comparison
equal deleted inserted replaced
4233:db75772afb28 4234:f31eac6b2e9c
84 reply:body("Unknown command. `help` to list commands."); 84 reply:body("Unknown command. `help` to list commands.");
85 reply:tag("response", { xmlns = xmlns_quick_resp, value = "help", }):up(); 85 reply:tag("response", { xmlns = xmlns_quick_resp, value = "help", }):up();
86 end 86 end
87 reply:reset(); 87 reply:reset();
88 88
89 if stanza:get_child("request", "urn:xmpp:receipts") then
90 reply:tag("received", { xmlns = "urn:xmpp:receipts", id = stanza.attr.id }):up();
91 end
92
93 if stanza:get_child("no-copy", "urn:xmpp:hints") then 89 if stanza:get_child("no-copy", "urn:xmpp:hints") then
94 reply:tag("no-copy", { xmlns = "urn:xmpp:hints" }):up(); 90 reply:tag("no-copy", { xmlns = "urn:xmpp:hints" }):up();
95 end 91 end
96 92
97 if stanza:get_child("no-store", "urn:xmpp:hints") then 93 if stanza:get_child("no-store", "urn:xmpp:hints") then