Explorar el Código

Fix syncing chats for users with old chats

Tulir Asokan hace 6 años
padre
commit
37fd5dba2c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {