瀏覽代碼

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

John Livingston 1 年之前
父節點
當前提交
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
 - Add an occupants filter to the MUC sidebar
 - Fix: MUC occupant list does not sort itself on nicknames or roles changes
 - Fix: MUC occupant list does not sort itself on nicknames or roles changes
 - Fix: refresh the MUC sidebar when participants collection is sorted
 - 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:
 ### Breaking changes:
 
 

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

@@ -1829,7 +1829,7 @@ class MUC extends ChatBox {
         // 173: room now semi-anonymous
         // 173: room now semi-anonymous
         // 174: room now fully anonymous
         // 174: room now fully anonymous
         const codes = ['104', '170', '171', '172', '173', '174'];
         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();
             this.refreshDiscoInfo();
         }
         }
     }
     }