Commit 9510bdc1 authored by JC Brand's avatar JC Brand

Remove minimized chats when logging out.

parent d96bc6eb
......@@ -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);
}
});
}));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment