Remove minimized chats when logging out.
This commit is contained in:
parent
d96bc6ebe4
commit
9510bdc152
|
@ -8,7 +8,8 @@
|
|||
- Bugfix. Cancel button shown while registration form is being fetched wasn't working
|
||||
properly. [jcbrand]
|
||||
- Bugfix. Login form wasn't rendered after logging out (when `auto_reconnect` is `true`). [jcbrand]
|
||||
- Properly disconnect upon "host-unknown" error. [jcbrand]
|
||||
- Bugfix. Properly disconnect upon "host-unknown" error. [jcbrand]
|
||||
- Bugfix. Minimized chats weren't removed when logging out. [jcbrand]
|
||||
|
||||
## 2.0.4 (2016-12-13)
|
||||
- #737: Bugfix. Translations weren't being applied. [jcbrand]
|
||||
|
|
|
@ -373,7 +373,6 @@
|
|||
}, 200, true)
|
||||
});
|
||||
|
||||
|
||||
converse.MinimizedChats = Backbone.Overview.extend({
|
||||
tagName: 'div',
|
||||
id: "minimized-chats",
|
||||
|
@ -526,6 +525,11 @@
|
|||
converse.chatboxviews.trimChats(chatbox);
|
||||
}
|
||||
});
|
||||
|
||||
var logOut = function () {
|
||||
converse.minimized_chats.remove();
|
||||
};
|
||||
converse.on('logout', logOut);
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue
Block a user