chat/message: Fix RecentActiveUsers sort order

This commit is contained in:
Andrey Petrov 2020-07-30 12:02:07 -04:00 committed by GitHub
parent 5885f7fbdd
commit 7822904afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ func (a RecentActiveUsers) Less(i, j int) bool {
if a[i].lastMsg.IsZero() {
return a[i].joined.Before(a[j].joined)
} else {
return a[i].lastMsg.After(a[j].lastMsg)
return a[i].lastMsg.Before(a[j].lastMsg)
}
}