Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 10821:30fc1ed5647a
mod_mam: Archive XEP-0353: Jingle Message Initiation
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 May 2020 00:57:42 +0200 |
parent | 10800:62794e065e33 |
child | 11260:08b397c21805 |
comparison
equal
deleted
inserted
replaced
10820:e0a09d3af563 | 10821:30fc1ed5647a |
---|---|
312 return true, "marker"; | 312 return true, "marker"; |
313 end | 313 end |
314 if stanza:get_child("x", "jabber:x:conference") | 314 if stanza:get_child("x", "jabber:x:conference") |
315 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then | 315 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then |
316 return true, "invite"; | 316 return true, "invite"; |
317 end | |
318 if stanza:get_child(nil, "urn:xmpp:jingle-message:0") then | |
319 -- XXX Experimental XEP stuck in Proposed for almost a year at the time of this comment | |
320 return true, "jingle call"; | |
317 end | 321 end |
318 | 322 |
319 -- The IM-NG thing to do here would be to return `not st_to_full` | 323 -- The IM-NG thing to do here would be to return `not st_to_full` |
320 -- One day ... | 324 -- One day ... |
321 return false, "default"; | 325 return false, "default"; |