diff options
author | Corey Hulen <corey@hulen.com> | 2017-02-09 13:39:15 -0800 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-02-09 21:39:15 +0000 |
commit | 1359f7f3918befd2463103379d17bd2eb846654d (patch) | |
tree | f8fe7cbfd7b8a59da7a655f7ac7bbc9233a70258 /app/channel.go | |
parent | 432dc9239fdd27063adcee944675d066fb35cde6 (diff) | |
download | chat-1359f7f3918befd2463103379d17bd2eb846654d.tar.gz chat-1359f7f3918befd2463103379d17bd2eb846654d.tar.bz2 chat-1359f7f3918befd2463103379d17bd2eb846654d.zip |
Adding go vet from hack-a-thon (#5328)
* Adding go vet to the api package
* Adding go vet to app package
* Adding go vet to manualtesting package
* Adding go vet to the model package
* Adding go vet to the store dir
* Adding go vet to utils package
* Adding missing dirs with go files
* Fixing up makefile
* Fixing up makefile
* Removing root dir
Diffstat (limited to 'app/channel.go')
-rw-r--r-- | app/channel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/channel.go b/app/channel.go index ccacc2ca6..fcd4e166d 100644 --- a/app/channel.go +++ b/app/channel.go @@ -805,7 +805,7 @@ func GetNumberOfChannelsOnTeam(teamId string) (int, *model.AppError) { func SetActiveChannel(userId string, channelId string) *model.AppError { status, err := GetStatus(userId) if err != nil { - status = &model.Status{userId, model.STATUS_ONLINE, false, model.GetMillis(), channelId} + status = &model.Status{UserId: userId, Status: model.STATUS_ONLINE, Manual: false, LastActivityAt: model.GetMillis(), ActiveChannel: channelId} } else { status.ActiveChannel = channelId if !status.Manual { |