Cleanup
This commit is contained in:
11
arn/User.go
11
arn/User.go
@ -203,17 +203,6 @@ func (user *User) SendNotification(pushNotification *PushNotification) {
|
||||
// Save changes
|
||||
subs.Save()
|
||||
|
||||
// Send email notification
|
||||
// if IsDevelopment() && user.ID == "4J6qpK1ve" {
|
||||
// subject := notification.Title
|
||||
// html := HTMLEmailRenderer.Notification(notification)
|
||||
// err := SendEmail(user.Email, subject, html)
|
||||
|
||||
// if err != nil {
|
||||
// fmt.Println(err)
|
||||
// }
|
||||
// }
|
||||
|
||||
// Send an event to the user's open tabs
|
||||
notificationCount := event.New("notificationCount", userNotifications.CountUnseen())
|
||||
user.BroadcastEvent(notificationCount)
|
||||
|
Reference in New Issue
Block a user