mod_bidi/mod_bidi.lua
changeset 3724 8e7d400d4db3
parent 1387 db2ff8f29472
child 3725 c96a53bf67b3
--- 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;