discourse/plugins/chat/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
..
discourse_dev
email_controller_helper
extensions DEV: Make summary subject logic more explicit (#19167) 2022-11-23 14:29:41 -03:00
onebox/templates
tasks
validators
chat_channel_archive_service.rb
chat_channel_fetcher.rb FIX: Minor hashtag autocomplete fixes (#19173) 2022-11-24 15:45:13 +11:00
chat_channel_hashtag_data_source.rb FIX: Push category hashtag slug match to top (#19174) 2022-11-25 15:28:49 +10:00
chat_channel_membership_manager.rb
chat_mailer.rb FIX: Deliver chat summaries when allowed groups include "everyone" (#18955) 2022-11-09 10:54:47 -03:00
chat_message_bookmarkable.rb
chat_message_creator.rb FEATURE: Generic hashtag autocomplete lookup and markdown cooking (#18937) 2022-11-21 08:37:06 +10:00
chat_message_processor.rb
chat_message_rate_limiter.rb
chat_message_reactor.rb
chat_message_updater.rb FIX: Make ChatMessageUpdater check editing access for guardian (#18902) 2022-11-08 09:04:18 +10:00
chat_notifier.rb FEATURE: Enforce mention limits for chat messages (#19034) 2022-12-06 14:54:04 -03:00
chat_review_queue.rb
chat_seeder.rb
chat_statistics.rb
chat_transcript_service.rb
direct_message_channel_creator.rb FEATURE: introduces `chat_max_direct_message_users` setting (#18997) 2022-11-15 10:40:28 +01:00
duplicate_message_validator.rb DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
guardian_extensions.rb FEATURE: Allow staff to flag chat messages (#18919) 2022-11-22 12:14:15 -03:00
message_mover.rb FIX: Make chat editor IDs not null (#18903) 2022-11-08 09:06:13 +10:00
post_notification_handler.rb
secure_uploads_compatibility.rb
slack_compatibility.rb