Commit 525fa6c1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
parent 7edf65d1
...@@ -254,7 +254,7 @@ class NotificationService ...@@ -254,7 +254,7 @@ class NotificationService
# Remove users with disabled notifications from array # Remove users with disabled notifications from array
# Also remove duplications and nil recipients # Also remove duplications and nil recipients
def reject_muted_users(users, project = nil) def reject_muted_users(users, project = nil)
users = users.compact.uniq users = users.to_a.compact.uniq
users.reject do |user| users.reject do |user|
next user.notification.disabled? unless project next user.notification.disabled? unless project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment