FEATURE: encourage users to set chat thread titles (#26617)

This change encourages users to title their threads to make it easier for other users to join in on conversations that matter to them.

The creator of the chat thread will receive a toast notification prompting them to add a thread title when on mobile and the thread has at least 5 sent replies.
This commit is contained in:
David Battersby
2024-04-29 17:20:01 +08:00
committed by GitHub
parent 620f76cec1
commit 0c8f531909
29 changed files with 555 additions and 28 deletions

View File

@@ -0,0 +1,11 @@
# frozen_string_literal: true
class AddThreadTitlePromptToUserChatThreadMemberships < ActiveRecord::Migration[7.0]
def change
add_column :user_chat_thread_memberships,
:thread_title_prompt_seen,
:boolean,
default: false,
null: false
end
end

View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddShowThreadTitlePromptsToUserOptions < ActiveRecord::Migration[7.0]
def change
add_column :user_options, :show_thread_title_prompts, :boolean, default: true, null: false
end
end