plugins/mod_carbons.lua
changeset 10824 e0a09d3af563
parent 10822 04a0aa6d7e72
child 11264 08b397c21805
equal deleted inserted replaced
10823:5f4093e80cfa 10824: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";