mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 06:03:41 +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]:
|
||
---|---|---|
.. | ||
sidebar_spec.rb |