Skip to content

Commit dbc17ef

Browse files
committed
forced mail notification when calling lost_password api
1 parent d8be1db commit dbc17ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/redmine_expo_push/patches/mailer_patch.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def deliver_mail(mail, &block)
2121
receivers.each do |addr|
2222
user = User.having_mail(addr).first
2323
if user.present? and user.send_push_notifications?
24+
if mail.subject == l(:mail_subject_lost_password, Setting.app_title)
25+
next
26+
end
2427
notification ||= RedmineExpoPush::Notification.for(mail)
2528
notification.add_recipient user
2629
skip_receivers << addr if user.push_skip_emails?

0 commit comments

Comments
 (0)