This commit is contained in:
2021-11-22 21:50:47 +09:00
parent b3318e4419
commit 9f133ee752
10 changed files with 37 additions and 94 deletions

View File

@ -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)