Skip to content

Commit 631ed68

Browse files
committed
skip users who chose not to receive emails
1 parent 855e8a6 commit 631ed68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redmine_expo_push/patches/user_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def send_push_notifications?
2222

2323
def push_skip_emails?
2424
# only skip emails when at least one device is registered
25-
pref.push_notifications == "enabled_no_email" and push_device_registered?
25+
pref.push_notifications == "enabled_no_email"
2626
end
2727

2828
def remove_references_before_destroy

0 commit comments

Comments
 (0)