Comparison

plugins/mod_carbons.lua @ 10820:e0a09d3af563

mod_carbons: Explicitly carbon XEP-0353: Jingle Message Initiation
author Kim Alvefur <zash@zash.se>
date Sat, 09 May 2020 00:55:18 +0200
parent 10818:04a0aa6d7e72
child 11260:08b397c21805
comparison
equal deleted inserted replaced
10819:5f4093e80cfa 10820:e0a09d3af563
51 -- Normal outgoing chat messages are sent to=bare JID. This clause should 51 -- Normal outgoing chat messages are sent to=bare JID. This clause should
52 -- match the error bounces from those, which would have from=bare JID and 52 -- match the error bounces from those, which would have from=bare JID and
53 -- be incoming (not c2s). 53 -- be incoming (not c2s).
54 if st_type == "error" and not c2s and is_bare(stanza.attr.from) then 54 if st_type == "error" and not c2s and is_bare(stanza.attr.from) then
55 return true, "bounce"; 55 return true, "bounce";
56 end
57
58 if stanza:get_child(nil, "urn:xmpp:jingle-message:0") then
59 -- XXX Experimental XEP stuck in Proposed for almost a year at the time of this comment
60 return true, "jingle call";
56 end 61 end
57 62
58 for archived in stanza:childtags("stanza-id", "urn:xmpp:sid:0") do 63 for archived in stanza:childtags("stanza-id", "urn:xmpp:sid:0") do
59 if archived and archived.attr.by == user_bare then 64 if archived and archived.attr.by == user_bare then
60 return true, "archived"; 65 return true, "archived";