diff --git a/app/models/channel.rb b/app/models/channel.rb index 49795cc..7966a4e 100644 --- a/app/models/channel.rb +++ b/app/models/channel.rb @@ -37,7 +37,7 @@ class DiscourseChat::Channel < DiscourseChat::PluginModel end check_unique = false - matching_channels = DiscourseChat::Channel.where.not(id: id) + matching_channels = DiscourseChat::Channel.with_provider(provider).where.not(id: id) data.each do |key, value| regex_string = params.find { |p| p[:key] == key }[:regex]