ソースを参照

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年前
コミット
a6ade336b7
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      resources/prosody-plugins/mod_measure_message_count.lua

+ 2
- 2
resources/prosody-plugins/mod_measure_message_count.lua ファイルの表示

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

読み込み中…
キャンセル
保存