mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: introduces chat_max_direct_message_users setting (#18997)
This setting limits the number of users in a direct message. 0 means you can only create a direct message with yourself. Co-authored-by: David McClure <dave@xerotrope.org>
This commit is contained in:
@@ -17,6 +17,7 @@ en:
|
||||
default_emoji_reactions: "Default emoji reactions for chat messages. Add up to 5 emojis for quick reaction."
|
||||
direct_message_enabled_groups: "Allow users within these groups to create user-to-user Personal Chats. Note: staff can always create Personal Chats, and users will be able to reply to Personal Chats initiated by users who have permission to create them."
|
||||
chat_message_flag_allowed_groups: "Users in these groups are allowed to flag chat messages."
|
||||
chat_max_direct_message_users: "Users cannot add more than this number of other users when creating a new direct message. Set to 0 to only allow messages to oneself. Staff are exempt from this setting."
|
||||
errors:
|
||||
chat_default_channel: "The default chat channel must be a public channel."
|
||||
direct_message_enabled_groups_invalid: "You must specify at least one group for this setting. If you do not want anyone except staff to send direct messages, choose the staff group."
|
||||
@@ -56,6 +57,9 @@ en:
|
||||
actor_disallowed_dms: "You have chosen to prevent users from sending you private and direct messages, so you cannot create new direct messages."
|
||||
actor_preventing_target_user_from_dm: "You have chosen to prevent %{username} from sending you private and direct messages, so you cannot create new direct messages to them."
|
||||
user_cannot_send_direct_messages: "Sorry, you cannot send direct messages."
|
||||
over_chat_max_direct_message_users:
|
||||
one: "You can only create a direct message with yourself."
|
||||
other: "You can't create a direct message with more than %{count} other users."
|
||||
reviewables:
|
||||
message_already_handled: "Thanks, but we've already reviewed this message and determined it does not need to be flagged again."
|
||||
actions:
|
||||
|
||||
@@ -20,6 +20,11 @@ chat:
|
||||
client: true
|
||||
max: 3652 # 10 years
|
||||
min: 0
|
||||
chat_max_direct_message_users:
|
||||
default: 20
|
||||
min: 0
|
||||
max: 100
|
||||
client: true
|
||||
chat_dm_retention_days:
|
||||
default: 0
|
||||
client: true
|
||||
|
||||
Reference in New Issue
Block a user