Revert "Revert "DEV: Explicitly register problem check (#191)" (#192)" (#193)

Reverts discourse/discourse-chat-integration#192

Reimplement https://github.com/discourse/discourse-chat-integration/pull/191 as the Discourse Core CI issue was unrelated.
This commit is contained in:
Isaac Janzen 2024-04-03 14:51:19 -06:00 committed by GitHub
parent 048e8d595a
commit 8b8a6ae8af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -19,8 +19,11 @@ require_relative "lib/discourse_chat_integration/provider/slack/slack_enabled_se
after_initialize do
require_relative "app/initializers/discourse_chat_integration"
require_relative "app/services/problem_check/channel_errors"
register_problem_check ProblemCheck::ChannelErrors
on(:site_setting_changed) do |setting_name, old_value, new_value|
is_enabled_setting = setting_name == :chat_integration_telegram_enabled
is_access_token = setting_name == :chat_integration_telegram_access_token