mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 11:17:52 +08:00
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:
@ -54,6 +54,7 @@ after_initialize do
|
||||
UserUpdater::OPTION_ATTR.push(:only_chat_push_notifications)
|
||||
UserUpdater::OPTION_ATTR.push(:chat_sound)
|
||||
UserUpdater::OPTION_ATTR.push(:ignore_channel_wide_mention)
|
||||
UserUpdater::OPTION_ATTR.push(:show_thread_title_prompts)
|
||||
UserUpdater::OPTION_ATTR.push(:chat_email_frequency)
|
||||
UserUpdater::OPTION_ATTR.push(:chat_header_indicator_preference)
|
||||
UserUpdater::OPTION_ATTR.push(:chat_separate_sidebar_mode)
|
||||
@ -251,6 +252,12 @@ after_initialize do
|
||||
object.ignore_channel_wide_mention
|
||||
end
|
||||
|
||||
add_to_serializer(:user_option, :show_thread_title_prompts) { object.show_thread_title_prompts }
|
||||
|
||||
add_to_serializer(:current_user_option, :show_thread_title_prompts) do
|
||||
object.show_thread_title_prompts
|
||||
end
|
||||
|
||||
add_to_serializer(:user_option, :chat_email_frequency) { object.chat_email_frequency }
|
||||
|
||||
add_to_serializer(:user_option, :chat_header_indicator_preference) do
|
||||
|
Reference in New Issue
Block a user