mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Don't sort if already sorted
// FREEBIE
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
var $el = this.$('.' + conversation.cid);
|
||||
if ($el && $el.length > 0) {
|
||||
var index = getInboxCollection().indexOf(conversation);
|
||||
if (index === this.$el.index($el)) {
|
||||
return;
|
||||
}
|
||||
if (index === 0) {
|
||||
this.$el.prepend($el);
|
||||
} else if (index === this.collection.length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user