From 37fd5dba2c29ca2fc1350dfe4310d2b5340e146b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 31 May 2019 21:59:23 +0300 Subject: [PATCH] Fix syncing chats for users with old chats --- user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.go b/user.go index c48fb6e..3b72bde 100644 --- a/user.go +++ b/user.go @@ -283,7 +283,7 @@ func (cl ChatList) Len() int { } func (cl ChatList) Less(i, j int) bool { - return cl[i].LastMessageTime < cl[i].LastMessageTime + return cl[i].LastMessageTime > cl[j].LastMessageTime } func (cl ChatList) Swap(i, j int) {