Comparison

plugins/mod_muc_mam.lua @ 10943:22b1298403ff 0.11

mod_muc_mam: Don't strip MUC <x> tags, fix #1567
author Kim Alvefur <zash@zash.se>
date Sun, 21 Jun 2020 19:20:54 +0200
parent 10834:c6e852984d48
child 10944:cb52cb8aa706
comparison
equal deleted inserted replaced
10914:0d7d71dee0a0 10943:22b1298403ff
314 314
315 -- Filter out <stanza-id> that claim to be from us 315 -- Filter out <stanza-id> that claim to be from us
316 stanza:maptags(function (tag) 316 stanza:maptags(function (tag)
317 if tag.name == "stanza-id" and tag.attr.xmlns == xmlns_st_id 317 if tag.name == "stanza-id" and tag.attr.xmlns == xmlns_st_id
318 and jid_prep(tag.attr.by) == room.jid then 318 and jid_prep(tag.attr.by) == room.jid then
319 return nil;
320 end
321 if tag.name == "x" and tag.attr.xmlns == xmlns_muc_user then
322 return nil; 319 return nil;
323 end 320 end
324 return tag; 321 return tag;
325 end); 322 end);
326 323