Sort the friends list on chat
This commit is contained in:
parent
a16894a1b1
commit
189ffbb61a
|
@ -156,6 +156,8 @@ func Landing() http.HandlerFunc {
|
||||||
friendsOnline = models.FilterFriendUsernames(currentUser, stats.Usernames)
|
friendsOnline = models.FilterFriendUsernames(currentUser, stats.Usernames)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
sort.Strings(friendsOnline)
|
||||||
|
|
||||||
var vars = map[string]interface{}{
|
var vars = map[string]interface{}{
|
||||||
"ChatAPI": strings.TrimSuffix(config.Current.BareRTC.URL, "/") + "/api/statistics",
|
"ChatAPI": strings.TrimSuffix(config.Current.BareRTC.URL, "/") + "/api/statistics",
|
||||||
"IsShyUser": isShy,
|
"IsShyUser": isShy,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user