discourse/plugins
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
..
chat FEATURE: Chat global mention warnings (pre-send & post-send) (#22764) 2023-08-22 15:54:35 -05:00
checklist Update translations (#23099) 2023-08-15 21:24:57 +02:00
discourse-details Update translations (#23099) 2023-08-15 21:24:57 +02:00
discourse-lazy-videos FIX: Allow to use `%h%m%s` for youtube `t` param (#22299) 2023-07-03 10:39:37 -03:00
discourse-local-dates DEV: Move calendar date + time picker from local dates into core component (#23023) 2023-08-11 13:05:44 +10:00
discourse-narrative-bot Update translations (#23099) 2023-08-15 21:24:57 +02:00
discourse-presence FEATURE: Separated 'trusted users can edit others' setting for trust level 3 & 4 (#21493) 2023-07-07 10:48:14 -05:00
poll DEV: Use object spread instead of `Object.assign({}, …)` (#23167) 2023-08-21 14:28:16 +02:00
styleguide DEV: Move calendar date + time picker from local dates into core component (#23023) 2023-08-11 13:05:44 +10:00