From 0434c4bc5374d9de31a70d71c439bb5e8655d02e Mon Sep 17 00:00:00 2001 From: lilia Date: Sat, 12 Mar 2016 14:13:14 -0800 Subject: [PATCH] Fixes #663 Conversation list loads in reverse order The onChangeActiveAt listener promotes newly activated conversations to the top of the inbox. By firing on an 'add' event, if the conversation list happened to load after the inbox frontend was initialized, each new entry would be incorrectly moved to the top, effectively reversing the list. // FREEBIE --- js/views/inbox_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 4883d9824..6fb37932e 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -74,7 +74,7 @@ }).render(); this.inboxListView.listenTo(inboxCollection, - 'add change:active_at', + 'change:active_at', this.inboxListView.onChangeActiveAt); this.searchView = new Whisper.ConversationSearchView({