Fix syncing chats for users with old chats
This commit is contained in:
parent
83f4cf2811
commit
37fd5dba2c
2
user.go
2
user.go
@ -283,7 +283,7 @@ func (cl ChatList) Len() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (cl ChatList) Less(i, j int) bool {
|
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) {
|
func (cl ChatList) Swap(i, j int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user