Call destroy
for the models instead of remove
on the collection
So that the models get removed from the browser cache. Otherwise they get re-fetched when we reconnect.
This commit is contained in:
parent
e5188d8b10
commit
89ef9a18c4
|
@ -433,7 +433,7 @@ converse.plugins.add('converse-muc', {
|
|||
removeNonMembers () {
|
||||
const non_members = this.occupants.filter(o => !o.isMember());
|
||||
if (non_members.length) {
|
||||
this.occupants.remove(non_members);
|
||||
non_members.forEach(o => o.destroy());
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user