discourse/plugins/chat/spec/lib
Roman Rizzi 9c8043a4d2
FEATURE: Enforce mention limits for chat messages (#19034)
* FEATURE: Enforce mention limits for chat messages

The first part of these changes adds a new setting called `max_mentions_per_chat_message`, which skips notifications when the message contains too many mentions. It also respects the `max_users_notified_per_group_mention` setting
and skips notifications if expanding a group mention would exceed it.

We also include a new component to display JIT warning for these limits to the user while composing a message.

* Simplify ignoring/muting filter in chat_notifier

* Post-send warnings for unsent warnings

* Improve pluralization

* Address review feedback

* Fix test

* Address second feedback round

* Third round of feedback

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2022-12-06 14:54:04 -03:00
..
chat_channel_archive_service_spec.rb
chat_channel_fetcher_spec.rb FEATURE: Generic hashtag autocomplete lookup and markdown cooking (#18937) 2022-11-21 08:37:06 +10:00
chat_channel_hashtag_data_source_spec.rb FIX: Minor hashtag autocomplete fixes (#19173) 2022-11-24 15:45:13 +11:00
chat_channel_membership_manager_spec.rb
chat_message_bookmarkable_spec.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
chat_message_reactor_spec.rb
chat_notifier_spec.rb FEATURE: Enforce mention limits for chat messages (#19034) 2022-12-06 14:54:04 -03:00
chat_review_queue_spec.rb FIX: Add editing user ids to ChatMessage and ChatMessageRevision (#18877) 2022-11-07 09:04:47 +10:00
chat_statistics_spec.rb
chat_transcript_service_spec.rb
direct_message_channel_creator_spec.rb FEATURE: introduces `chat_max_direct_message_users` setting (#18997) 2022-11-15 10:40:28 +01:00
duplicate_message_validator_spec.rb
guardian_extensions_spec.rb FEATURE: Allow staff to flag chat messages (#18919) 2022-11-22 12:14:15 -03:00
message_mover_spec.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
post_notification_handler_spec.rb
slack_compatibility_spec.rb