Comparison

plugins/muc/history.lib.lua @ 13791:aecdec3dad83

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 23 Mar 2025 20:19:09 +0100
parent 13790:24252947a8ca
comparison
equal deleted inserted replaced
13787:3e72cdca6beb 13791:aecdec3dad83
202 202
203 module:hook("muc-message-is-historic", function (event) 203 module:hook("muc-message-is-historic", function (event)
204 local stanza = event.stanza; 204 local stanza = event.stanza;
205 if stanza:get_child("no-store", "urn:xmpp:hints") 205 if stanza:get_child("no-store", "urn:xmpp:hints")
206 or stanza:get_child("no-permanent-store", "urn:xmpp:hints") then 206 or stanza:get_child("no-permanent-store", "urn:xmpp:hints") then
207 -- XXX Experimental XEP
208 return false, "hint"; 207 return false, "hint";
209 end 208 end
210 if stanza:get_child("store", "urn:xmpp:hints") then 209 if stanza:get_child("store", "urn:xmpp:hints") then
211 return true, "hint"; 210 return true, "hint";
212 end 211 end
217 -- Since we can't know what an encrypted message contains, we assume it's important 216 -- Since we can't know what an encrypted message contains, we assume it's important
218 -- XXX Experimental XEP 217 -- XXX Experimental XEP
219 return true, "encrypted"; 218 return true, "encrypted";
220 end 219 end
221 if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then 220 if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then
222 -- XXX Experimental XEP
223 return true, "marker"; 221 return true, "marker";
224 end 222 end
225 end, -1); 223 end, -1);
226 224
227 return { 225 return {