mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 02:13:45 +08:00
9c482a645c
Currently it’s not possible to delete a category if an associated chat channel is present even if there are no messages in this channel. This can lead to annoying situations for our users. This patch addresses the issue by checking if the channel is empty instead of just checking if there is a channel. |
||
---|---|---|
.. | ||
channel_access_example.rb | ||
chat_channel_model.rb | ||
chatable_model.rb |