mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 02:15:32 +08:00
DEV: Start threading for chat (#20060)
Adds hidden `enable_experimental_chat_threaded_discussions` setting which will control whether threads show in the UI, alongside the `ChatChannel.threading_enabled` boolean column, which does the same. The former is a global switch for this feature, while the latter can be used to allow single channels to show this new functionality if the site setting is true. Neither setting impacts whether `ChatThread` records (which will be added in a future PR) will be created, they will always be made regardless.
This commit is contained in:
parent
5d669d8aa2
commit
8c4c00b211
plugins/chat
app/models
config
db/migrate
@ -164,6 +164,7 @@ end
|
|||||||
# user_count_stale :boolean default(FALSE), not null
|
# user_count_stale :boolean default(FALSE), not null
|
||||||
# slug :string
|
# slug :string
|
||||||
# type :string
|
# type :string
|
||||||
|
# threading_enabled :boolean default(FALSE), not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -113,3 +113,6 @@ chat:
|
|||||||
max_chat_draft_length:
|
max_chat_draft_length:
|
||||||
default: 50_000
|
default: 50_000
|
||||||
hidden: true
|
hidden: true
|
||||||
|
enable_experimental_chat_threaded_discussions:
|
||||||
|
default: false
|
||||||
|
hidden: true
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class AddThreadingEnabledToChatChannels < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
add_column :chat_channels, :threading_enabled, :boolean, default: false, null: false
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user