Răsfoiți Sursa

Bugfix. Don't trim the newly opened (and only current) chat.

JC Brand 10 ani în urmă
părinte
comite
1c3b61274c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -2974,7 +2974,7 @@
 
                 if ((minimized_width + boxes_width + controlbox_width) > this.$el.outerWidth(true)) {
                     oldest_chat = this.getOldestMaximizedChat();
-                    if (oldest_chat) {
+                    if (oldest_chat && oldest_chat.get('id') !== new_id) {
                         oldest_chat.minimize();
                     }
                 }