mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 14:18:12 +08:00
68eba53e09
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. |
||
---|---|---|
.. | ||
discourse | ||
lib/discourse-markdown | ||
select-kit/addons/components |