Selaa lähdekoodia

fix: Fix measure messages.

This just counts messages and should not block processing messages. Breaks visitor messages coming from s2s and no session params are available.
factor2
damencho 2 vuotta sitten
vanhempi
commit
a6ade336b7
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      resources/prosody-plugins/mod_measure_message_count.lua

+ 2
- 2
resources/prosody-plugins/mod_measure_message_count.lua Näytä tiedosto

99
 
99
 
100
     local session = event.origin;
100
     local session = event.origin;
101
     if not session or not session.jitsi_web_query_room then
101
     if not session or not session.jitsi_web_query_room then
102
-        return false;
102
+        return;
103
     end
103
     end
104
 
104
 
105
     -- get room name with tenant and find room.
105
     -- get room name with tenant and find room.
107
     if not room then
107
     if not room then
108
         module:log('warn', 'No room found found for %s/%s',
108
         module:log('warn', 'No room found found for %s/%s',
109
             session.jitsi_web_query_prefix, session.jitsi_web_query_room);
109
             session.jitsi_web_query_prefix, session.jitsi_web_query_room);
110
-        return false;
110
+        return;
111
     end
111
     end
112
 
112
 
113
     if not room._muc_messages_count then
113
     if not room._muc_messages_count then

Loading…
Peruuta
Tallenna