equal
deleted
inserted
replaced
88 |
88 |
89 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP |
89 -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP |
90 local copy = st.clone(stanza); |
90 local copy = st.clone(stanza); |
91 copy.attr.xmlns = "jabber:client"; |
91 copy.attr.xmlns = "jabber:client"; |
92 local carbon = st.message{ from = bare_jid, type = orig_type, } |
92 local carbon = st.message{ from = bare_jid, type = orig_type, } |
93 :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }):up() |
93 :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }) |
94 :tag("forwarded", { xmlns = xmlns_forward }) |
94 :tag("forwarded", { xmlns = xmlns_forward }) |
95 :add_child(copy):reset(); |
95 :add_child(copy):reset(); |
96 |
96 |
97 -- COMPAT |
97 -- COMPAT |
98 local carbon_old = st.message{ from = bare_jid, type = orig_type, } |
98 local carbon_old = st.message{ from = bare_jid, type = orig_type, } |