converse-rosterview: Remove the rosterview when tearing down.

It gets created anew when reconnecting or logging in.
This commit is contained in:
JC Brand 2016-12-06 11:06:21 +00:00
parent c877f63bf0
commit bd81a98ffa

View File

@ -52,6 +52,16 @@
this.__super__.afterReconnected.apply(this, arguments);
},
_tearDown: function () {
/* Remove the rosterview when tearing down. It gets created
* anew when reconnecting or logging in.
*/
this.__super__._tearDown.apply(this, arguments);
if (!_.isUndefined(this.rosterview)) {
this.rosterview.remove();
}
},
RosterGroups: {
comparator: function () {
// RosterGroupsComparator only gets set later (once i18n is