mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-13 15:47:17 +03:00
chat/message: Fix RecentActiveUsers sort order
This commit is contained in:
parent
5885f7fbdd
commit
7822904afc
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user