Bläddra i källkod

fix(visitors): Fix a check that can result missing main participants.

factor2
damencho 10 månader sedan
förälder
incheckning
938d112f6b
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      resources/prosody-plugins/mod_fmuc.lua

+ 1
- 1
resources/prosody-plugins/mod_fmuc.lua Visa fil

@@ -141,7 +141,7 @@ module:hook('muc-occupant-pre-join', function (event)
141 141
         else
142 142
             occupant.role = 'visitor';
143 143
         end
144
-    elseif room.moderators_list:contains(resource) then
144
+    elseif room.moderators_list and room.moderators_list:contains(resource) then
145 145
         -- remote participants, host is the main prosody
146 146
         occupant.role = 'moderator';
147 147
     end

Laddar…
Avbryt
Spara