sort conversation by the last message timestamp

This commit is contained in:
or-else
2018-04-19 19:16:59 -07:00
parent 6edaf16db8
commit decad8f65c
+3
View File
@@ -1847,6 +1847,9 @@
totalUnread += c.unread; totalUnread += c.unread;
contacts.push(c); contacts.push(c);
}, this); }, this);
contacts.sort(function(a,b){
return b.touched - a.touched;
});
updateFavicon(totalUnread > 0); updateFavicon(totalUnread > 0);
// Sort: most recent to less recent. // Sort: most recent to less recent.