projects
/
ssh-chat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
chat/message: Fix RecentActiveUsers sort order
[ssh-chat]
/
chat
/
message
/
user.go
diff --git
a/chat/message/user.go
b/chat/message/user.go
index 3f96e281bdeb74cfe5e3daa26c2128d1ec2e9503..d4cc304c539c995076dcc27e02dba1adefc84538 100644
(file)
--- a/
chat/message/user.go
+++ b/
chat/message/user.go
@@
-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)
}
}