Changeset

3540:1b45bac50f3d

mod_csi_muc_priorities: Consider own messages important (fallback if no mod_track_muc_joins)
author Kim Alvefur <zash@zash.se>
date Mon, 01 Apr 2019 13:19:47 +0200
parents 3539:6d51f44bc725
children 3541:4d8a68557941
files mod_csi_muc_priorities/mod_csi_muc_priorities.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_csi_muc_priorities/mod_csi_muc_priorities.lua	Mon Apr 01 13:19:29 2019 +0200
+++ b/mod_csi_muc_priorities/mod_csi_muc_priorities.lua	Mon Apr 01 13:19:47 2019 +0200
@@ -31,6 +31,9 @@
 						return true;
 					end
 				end
+			elseif session.directed and session.directed[stanza.attr.from] then
+				-- fallback if no mod_track_muc_joins
+				return true;
 			end
 		end
 	end