From decad8f65c1216d1cf4e55f76d10dd425792d12f Mon Sep 17 00:00:00 2001 From: or-else Date: Thu, 19 Apr 2018 19:16:59 -0700 Subject: [PATCH] sort conversation by the last message timestamp --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 9b55a741..2dc7c285 100644 --- a/index.html +++ b/index.html @@ -1847,6 +1847,9 @@ totalUnread += c.unread; contacts.push(c); }, this); + contacts.sort(function(a,b){ + return b.touched - a.touched; + }); updateFavicon(totalUnread > 0); // Sort: most recent to less recent.