Sort the friends list on chat

face-detect
Noah Petherbridge 2023-10-08 13:36:59 -07:00
parent a16894a1b1
commit 189ffbb61a
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@ func Landing() http.HandlerFunc {
friendsOnline = models.FilterFriendUsernames(currentUser, stats.Usernames)
)
sort.Strings(friendsOnline)
var vars = map[string]interface{}{
"ChatAPI": strings.TrimSuffix(config.Current.BareRTC.URL, "/") + "/api/statistics",
"IsShyUser": isShy,