Ver código fonte

Fix syncing chats for users with old chats

Tulir Asokan 6 anos atrás
pai
commit
37fd5dba2c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      user.go

+ 1 - 1
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) {