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

@ -49,6 +49,8 @@ Chat::Engine.routes.draw do
post "/channels/:channel_id/threads/:thread_id/drafts" => "channels_threads_drafts#create"
put "/channels/:channel_id/threads/:thread_id/notifications-settings/me" =>
"channel_threads_current_user_notifications_settings#update"
post "/channels/:channel_id/threads/:thread_id/mark-thread-title-prompt-seen/me" =>
"channel_threads_current_user_title_prompt_seen#update"
# TODO (martin) Remove this when we refactor the DM channel creation to happen
# via message creation in a different API controller.