From 7f4534f03ec6eeb6170b9d64916d2f8c17c6c1e1 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 3 Nov 2019 01:54:25 +0900 Subject: [PATCH] Disabled E-Mail notifications in dev mode --- arn/User.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arn/User.go b/arn/User.go index 387c2de3..ac52d9c6 100644 --- a/arn/User.go +++ b/arn/User.go @@ -212,15 +212,15 @@ func (user *User) SendNotification(pushNotification *PushNotification) { subs.Save() // Send email notification - if IsDevelopment() && user.ID == "4J6qpK1ve" { - subject := notification.Title - html := HTMLEmailRenderer.Notification(notification) - err := SendEmail(user.Email, subject, html) + // if IsDevelopment() && user.ID == "4J6qpK1ve" { + // subject := notification.Title + // html := HTMLEmailRenderer.Notification(notification) + // err := SendEmail(user.Email, subject, html) - if err != nil { - fmt.Println(err) - } - } + // if err != nil { + // fmt.Println(err) + // } + // } // Send an event to the user's open tabs user.BroadcastEvent(&aero.Event{