Hide the minimized chats toggle immediately
Otherwise the hide event can prevent a consecutive show event. This bug becomes apparent when maximizing a minimized chat in a screen with not enough space. Another box will have to be minimized, which causes first a hide and then a show event on the minimized chats toggle.
This commit is contained in:
parent
94693f2d02
commit
38322c7795
|
@ -394,7 +394,8 @@
|
|||
|
||||
render: function () {
|
||||
if (this.keys().length === 0) {
|
||||
this.$el.hide('fast', converse.chatboxviews.trimChats.bind(converse.chatboxviews));
|
||||
this.$el.hide();
|
||||
converse.chatboxviews.trimChats.bind(converse.chatboxviews);
|
||||
} else if (this.keys().length === 1 && !this.$el.is(':visible')) {
|
||||
this.$el.show('fast', converse.chatboxviews.trimChats.bind(converse.chatboxviews));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user