Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove author check from meeting notifications

Oliver Güntherf46d4ea6a2bd
diff --git a/modules/meeting/app/services/meeting_notification_service.rb b/modules/meeting/app/services/meeting_notification_service.rb
index ec08d5fb568..1bd7391edac 100644
--- a/modules/meeting/app/services/meeting_notification_service.rb
+++ b/modules/meeting/app/services/meeting_notification_service.rb
@@ -5,20 +5,16 @@ class MeetingNotificationService
@meeting = meeting
end
- def call(action, include_author: false, **)
- recipients_with_errors = send_notifications!(action, include_author:, **)
+ def call(action, **)
+ recipients_with_errors = send_notifications!(action, **)
ServiceResult.new(success: recipients_with_errors.empty?, errors: recipients_with_errors)
end
private
- def send_notifications!(action, include_author:, **)
- author_mail = meeting.author.mail
-
+ def send_notifications!(action, **)
recipients_with_errors = []
meeting.participants.includes(:user).find_each do |recipient|
- next if recipient.mail == author_mail && !include_author
-
MeetingMailer.send(action, meeting, recipient.user, User.current, **).deliver_later
rescue StandardError => e
Rails.logger.error do