mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 23:16:22 +08:00

When chat channels are deleted, some users may be able to click the thread before it gets removed from the UI. This leads to a 500 error causing log noise. We can use the safe navigational operator to prevent calling chatable when the channel is not found (due to deleted_at constraint in query).