diff options
author | Kim Alvefur <zash@zash.se> | 2022-10-20 14:12:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-10-20 14:12:56 +0200 |
commit | 728ee0b92a03549fc6598ddde5f46796eb859e0f (patch) | |
tree | 28b7e2d01964c4a2896fc7ea3658f341949f8446 /plugins | |
parent | a46ae8cb89d83b98a5e3f8da1d958905b2cb78ac (diff) | |
download | prosody-728ee0b92a03549fc6598ddde5f46796eb859e0f.tar.gz prosody-728ee0b92a03549fc6598ddde5f46796eb859e0f.zip |
mod_s2s_bidi: Add provisions for advertising features to bidi peers
As introduced in XEP-xxxx: Stream Limits Advertisement
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s_bidi.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_s2s_bidi.lua b/plugins/mod_s2s_bidi.lua index addcd6e2..d5cd7f9a 100644 --- a/plugins/mod_s2s_bidi.lua +++ b/plugins/mod_s2s_bidi.lua @@ -25,7 +25,9 @@ module:hook_tag("http://etherx.jabber.org/streams", "features", function (sessio if bidi then session.incoming = true; session.log("debug", "Requesting bidirectional stream"); - session.sends2s(st.stanza("bidi", { xmlns = xmlns_bidi })); + local request_bidi = st.stanza("bidi", { xmlns = xmlns_bidi }); + module:fire_event("s2sout-stream-features", { origin = session, features = request_bidi }); + session.sends2s(request_bidi); end end end, 200); |