mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 05:03:40 +08:00
02469d5795
When you reply to a chat message, we [always create a thread][1]. But when the channel we're in doesn't have threading enabled, the reply is _technically_ not a thread.
This changes the `in_thread?` method to check for both the presence of a `thread_id` and to ensure that the channel has `threading_enabled`.
Internal ref - t/128103/3
[1]:
|
||
---|---|---|
.. | ||
admin | ||
chat | ||
core_ext | ||
application_controller_spec.rb | ||
chat_controller_spec.rb | ||
direct_messages_controller_spec.rb | ||
emojis_controller_spec.rb |