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/notification.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/notification.go')
-rw-r--r-- | app/notification.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/notification.go b/app/notification.go index 1550c0393..f2b454b50 100644 --- a/app/notification.go +++ b/app/notification.go @@ -241,7 +241,7 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe var status *model.Status var err *model.AppError if status, err = GetStatus(id); err != nil { - status = &model.Status{id, model.STATUS_OFFLINE, false, 0, ""} + status = &model.Status{UserId: id, Status: model.STATUS_OFFLINE, Manual: false, LastActivityAt: 0, ActiveChannel: ""} } if DoesStatusAllowPushNotification(profileMap[id], status, post.ChannelId) { @@ -254,7 +254,7 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe var status *model.Status var err *model.AppError if status, err = GetStatus(id); err != nil { - status = &model.Status{id, model.STATUS_OFFLINE, false, 0, ""} + status = &model.Status{UserId: id, Status: model.STATUS_OFFLINE, Manual: false, LastActivityAt: 0, ActiveChannel: ""} } if DoesStatusAllowPushNotification(profileMap[id], status, post.ChannelId) { |