Просмотр исходного кода

Fix: room information not correctly refreshed when modifications are made by other users

John Livingston 1 год назад
Родитель
Сommit
ac8815868f
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      CHANGES.md
  2. 1 1
      src/headless/plugins/muc/muc.js

+ 1 - 0
CHANGES.md

@@ -10,6 +10,7 @@
 - Add an occupants filter to the MUC sidebar
 - Fix: MUC occupant list does not sort itself on nicknames or roles changes
 - Fix: refresh the MUC sidebar when participants collection is sorted
+- Fix: room information not correctly refreshed when modifications are made by other users
 
 ### Breaking changes:
 

+ 1 - 1
src/headless/plugins/muc/muc.js

@@ -1829,7 +1829,7 @@ class MUC extends ChatBox {
         // 173: room now semi-anonymous
         // 174: room now fully anonymous
         const codes = ['104', '170', '171', '172', '173', '174'];
-        if (sizzle('status', stanza).filter(e => codes.includes(e.getAttribute('status'))).length) {
+        if (sizzle('status', stanza).filter(e => codes.includes(e.getAttribute('code'))).length) {
             this.refreshDiscoInfo();
         }
     }