mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-09 14:35:34 +00:00
Only check channel uniqueness within the same provider
This commit is contained in:
parent
9b229b63f9
commit
4703250c1f
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user