Browse Source

fix: Fixes filtering lobby presences.

j8
damencho 4 years ago
parent
commit
30a2e84da1
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      resources/prosody-plugins/mod_muc_lobby_rooms.lua

+ 2
- 4
resources/prosody-plugins/mod_muc_lobby_rooms.lua View File

@@ -148,10 +148,8 @@ function filter_stanza(stanza)
148 148
     end
149 149
 end
150 150
 function filter_session(session)
151
-    if session.host and session.host == module.host then
152
-        -- domain mapper is filtering on default priority 0, and we need it after that
153
-        filters.add_filter(session, 'stanzas/out', filter_stanza, -1);
154
-    end
151
+    -- domain mapper is filtering on default priority 0, and we need it after that
152
+    filters.add_filter(session, 'stanzas/out', filter_stanza, -1);
155 153
 end
156 154
 
157 155
 function attach_lobby_room(room)

Loading…
Cancel
Save