sort conversation by the last message timestamp
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user