Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: chat replies are not always in a thread #27023

Merged
merged 2 commits into from
May 16, 2024

Conversation

ZogStriP
Copy link
Member

When you reply to a chat message, we always create a thread. 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

@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label May 14, 2024
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]: https://github.com/discourse/discourse/blob/e6e3eaf472a0112aca882811267a260c4cc73a89/plugins/chat/app/services/chat/create_message.rb#L110-L115
@ZogStriP ZogStriP force-pushed the chat-replies-are-not-threads branch from 09314e7 to 088341e Compare May 14, 2024 23:37
@ZogStriP ZogStriP merged commit 02469d5 into main May 16, 2024
16 checks passed
@ZogStriP ZogStriP deleted the chat-replies-are-not-threads branch May 16, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
3 participants