Fix syncing chats for users with old chats

This commit is contained in:
Tulir Asokan 2019-05-31 21:59:23 +03:00
parent 83f4cf2811
commit 37fd5dba2c

View file

@ -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) {