Bläddra i källkod

fix: jicofo_lock is null when restored from storage (#13517)

* Fix jicofo_lock is null when restored from storage

* revert

---------

Co-authored-by: hshim432 <hshimizusv@gmail.com>
factor2
Hayato Shimizu 2 år sedan
förälder
incheckning
5ce2bef556
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3
    3
      resources/prosody-plugins/mod_muc_meeting_id.lua

+ 3
- 3
resources/prosody-plugins/mod_muc_meeting_id.lua Visa fil

81
     local room, stanza = event.room, event.stanza;
81
     local room, stanza = event.room, event.stanza;
82
 
82
 
83
     -- we skip processing only if jicofo_lock is set to false
83
     -- we skip processing only if jicofo_lock is set to false
84
-    if room.jicofo_lock == false or is_healthcheck_room(stanza.attr.from) then
84
+    if room._data.jicofo_lock == false or is_healthcheck_room(stanza.attr.from) then
85
         return;
85
         return;
86
     end
86
     end
87
 
87
 
89
     if ends_with(occupant.nick, '/focus') then
89
     if ends_with(occupant.nick, '/focus') then
90
         module:fire_event('jicofo-unlock-room', { room = room; });
90
         module:fire_event('jicofo-unlock-room', { room = room; });
91
     else
91
     else
92
-        room.jicofo_lock = true;
92
+        room._data.jicofo_lock = true;
93
         if not room.pre_join_queue then
93
         if not room.pre_join_queue then
94
             room.pre_join_queue = queue.new(QUEUE_MAX_SIZE);
94
             room.pre_join_queue = queue.new(QUEUE_MAX_SIZE);
95
         end
95
         end
108
 function handle_jicofo_unlock(event)
108
 function handle_jicofo_unlock(event)
109
     local room = event.room;
109
     local room = event.room;
110
 
110
 
111
-    room.jicofo_lock = false;
111
+    room._data.jicofo_lock = false;
112
     if not room.pre_join_queue then
112
     if not room.pre_join_queue then
113
         return;
113
         return;
114
     end
114
     end

Laddar…
Avbryt
Spara