Selaa lähdekoodia

Fix syncing chats for users with old chats

Tulir Asokan 6 vuotta sitten
vanhempi
sitoutus
37fd5dba2c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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) {