discourse/plugins/chat/app/jobs/scheduled/email_chat_notifications.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
258 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Jobs
class EmailChatNotifications < ::Jobs::Scheduled
every 5.minutes
def execute(args = {})
return unless SiteSetting.chat_enabled
Chat::ChatMailer.send_unread_mentions_summary
end
end
end