discourse/plugins/chat/lib/chat
Mark VanLandingham 68eba53e09
FEATURE: Chat global mention warnings (pre-send & post-send) (#22764)
This is also fixes the issue of chat composer warnings persisting across channels. Currently if you try to mention more groups than is allowed for example, a mention warning pops up. When you change channels the mention warning will not disappear even if there is no text in the composer.

This adds a reset function to the chat-composer-warnings-tracker.js, which is called when the channel is changed and the message is empty. In the event that the message is not empty we call captureMentions to check the loaded drafts' mentions.

This PR would be nicer if the post-send notice used the new chat notices API to publish the mention warnings but we would have to change the existing ones and I thought that would be too much change for this PR. It'd be a good followup though.
2023-08-22 15:54:35 -05:00
..
types FIX: ActiveModel::Types :array load error in production (#22377) 2023-07-03 11:30:09 +10:00
bookmark_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
category_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
channel_archive_service.rb DEV: Remove enable_experimental_hashtag_autocomplete logic (#22820) 2023-08-08 11:18:55 +10:00
channel_fetcher.rb DEV: Refactor chat channel fetching 2023-07-27 11:55:17 +02:00
channel_hashtag_data_source.rb DEV: Remove enable_experimental_hashtag_autocomplete logic (#22820) 2023-08-08 11:18:55 +10:00
channel_membership_manager.rb FEATURE: Auto-remove users without permission from channel (#20344) 2023-03-22 10:19:59 +10:00
duplicate_message_validator.rb
engine.rb
guardian_extensions.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
mailer.rb
message_bookmarkable.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
message_creator.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
message_mover.rb DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
message_processor.rb DEV: Consistently use html5 loofah (#22711) 2023-07-20 12:01:45 +02:00
message_rate_limiter.rb
message_reactor.rb
message_updater.rb DEV: Refactor a little chat uploads 2023-07-24 11:13:57 +02:00
messages_exporter.rb FIX: Don't fail when exporting chat messages from deleted channels (#23131) 2023-08-18 14:22:24 +04:00
notification_levels.rb FIX: Chat NotificationLevels extension breaking in prod (#21484) 2023-05-10 18:46:06 +02:00
notifier.rb FEATURE: Chat global mention warnings (pre-send & post-send) (#22764) 2023-08-22 15:54:35 -05:00
parsed_mentions.rb DEV: extract more logic into ParsedMentions class (#21729) 2023-05-25 15:41:22 +04:00
plugin_instance_extension.rb
post_notification_handler.rb
review_queue.rb FIX: Don't create a reviewable when sending PM to user in chat (#22914) 2023-08-08 13:18:34 +02:00
reviewable_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
secure_uploads_compatibility.rb
seeder.rb
slack_compatibility.rb
statistics.rb
steps_inspector.rb DEV: Add policy objects to services 2023-05-25 12:34:00 +02:00
transcript_service.rb
user_email_extension.rb
user_extension.rb DEV: Create UserChatThreadMembership table and model (#21481) 2023-05-10 17:19:48 +02:00
user_notifications_extension.rb DEV: removes deprecated code (#23183) 2023-08-22 15:53:37 +02:00
user_option_extension.rb FEATURE: implements user based sidebar mode (#23078) 2023-08-18 20:33:07 +02:00