Skip to content

Commit 855e8a6

Browse files
committed
notify only users whose devices are registered
1 parent dbc17ef commit 855e8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redmine_expo_push/patches/mailer_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def deliver_mail(mail, &block)
2525
next
2626
end
2727
notification ||= RedmineExpoPush::Notification.for(mail)
28-
notification.add_recipient user
28+
notification.add_recipient user if user.push_device_registered?
2929
skip_receivers << addr if user.push_skip_emails?
3030
end
3131
end

0 commit comments

Comments
 (0)