chat/message: Fix RecentActiveUsers sort order

This commit is contained in:
Andrey Petrov authored and GitHub committed 2020-07-30 12:02:07 -04:00
1 parent 5885f7fbdd
commit 7822904afc
1 file changed
+1 -1
+1 -1
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)
}
}