Fix syncing chats for users with old chats
This commit is contained in:
parent
83f4cf2811
commit
37fd5dba2c
1 changed files with 1 additions and 1 deletions
2
user.go
2
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) {
|
||||
|
|
Loading…
Reference in a new issue