discourse/plugins/chat/app/controllers/chat
Joffrey JAFFEUX 111ac4c7f2
FIX: call composer reset with correct params (#21777)
We were calling reset without the proper params which was causing errors in the console. This commit does the following changes:

- ensures `composer.cancel()` is the only way to cancel editing/reply
- adds a `draftSaved` property to chat message to allow for better tests
- writes a spec to ensure the flow is correct
- adds more page objects for better tests
- homogenize the default state of objects on chat message

Co-authored-by: Martin Brennan <martin@discourse.org>
2023-05-30 18:37:30 +02:00
..
admin
api FIX: Chat deleted last read message and tracking state issues (#21762) 2023-05-26 10:44:27 +02:00
api_controller.rb DEV: Add policy objects to services 2023-05-25 12:34:00 +02:00
base_controller.rb
chat_controller.rb FIX: call composer reset with correct params (#21777) 2023-05-30 18:37:30 +02:00
direct_messages_controller.rb
emojis_controller.rb FEATURE: Add an emoji deny list site setting (#20929) 2023-04-13 15:38:54 +08:00
incoming_webhooks_controller.rb FIX: correctly checks for chat enabled in incoming webhooks controller (#20730) 2023-03-20 09:42:36 +01:00