Software /
code /
prosody-modules
Diff
mod_bidi/mod_bidi.lua @ 3720:8e7d400d4db3
mod_bidi: Make compatible Prosody after rev b36765ab0ae3 (fixes #1450)
Prosody now natively supports bidi, but relies on these .incoming and .outgoing fields existing.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 20 Oct 2019 01:29:25 +0200 |
parent | 1387:db2ff8f29472 |
child | 3721:c96a53bf67b3 |
line wrap: on
line diff
--- a/mod_bidi/mod_bidi.lua Sun Oct 13 23:09:32 2019 +0200 +++ b/mod_bidi/mod_bidi.lua Sun Oct 20 01:29:25 2019 +0200 @@ -36,9 +36,11 @@ end bidi_sessions[origin.from_host] = origin; origin.is_bidi = true; + origin.outgoing = true; elseif origin.type == "s2sout" then -- handle incoming stanzas correctly local bidi_session = { type = "s2sin"; direction = "incoming"; + incoming = true; is_bidi = true; orig_session = origin; to_host = origin.from_host; from_host = origin.to_host;