2
0
Эх сурвалжийг харах

Update device lists in modals if devices get removed

JC Brand 6 жил өмнө
parent
commit
75bd24c19e
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      src/converse-omemo.js

+ 3 - 0
src/converse-omemo.js

@@ -82,6 +82,7 @@
                     this.devicelist = _converse.devicelists.get(_converse.bare_jid);
                     this.devicelist.devices.on('change:bundle', this.debouncedRender, this);
                     this.devicelist.devices.on('reset', this.debouncedRender, this);
+                    this.devicelist.devices.on('remove', this.debouncedRender, this);
                     return this.__super__.initialize.apply(this, arguments);
                 },
 
@@ -134,6 +135,8 @@
                     this.devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({'jid': jid});
                     this.devicelist.devices.on('change:bundle', this.render, this);
                     this.devicelist.devices.on('change:trusted', this.render, this);
+                    this.devicelist.devices.on('remove', this.render, this);
+                    this.devicelist.devices.on('reset', this.render, this);
                     return this.__super__.initialize.apply(this, arguments);
                 },