discourse/plugins/chat/spec
Joffrey JAFFEUX c0808b2537
FIX: correctly makes dm creator to follow channel (#22470)
In previous changes we prevented creating a channel to also make users follow the channel. We were forcing recipients to follow the channel on message sent but this was not including the creator of the message itself.

This commit fixes it and also write an end-to-end system spec to cover these cases. The message creator service is currently being rewritten and should correctly test and ensure this logic is present.

This commit also makes changes on the frontend to instantly follow a DM when you open it, this change prevents a green dot to appear for a split second when you send a message in a channel you were previously not following. Only recipients will see the green dot.
2023-07-06 21:42:19 +02:00
..
components/chat DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
fabricators DEV: Fix number of chars for chat message content in fabricator (#22454) 2023-07-06 10:34:57 +08:00
integration DEV: Update chat cooked quote spec (#22202) 2023-06-20 10:30:33 +08:00
jobs FIX: Mark threads read when threading enabled for a channel (#22458) 2023-07-06 16:24:56 +10:00
lib FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
mailers DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
models DEV: Move user count update for channels to ensure_consistency! (#22321) 2023-07-03 11:41:51 +10:00
queries/chat FIX: Better handling of deleted thread original messages (#22402) 2023-07-06 09:47:34 +10:00
requests FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
serializer DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
services FIX: Mark threads read when threading enabled for a channel (#22458) 2023-07-06 16:24:56 +10:00
support FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
system FIX: correctly makes dm creator to follow channel (#22470) 2023-07-06 21:42:19 +02:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
plugin_spec.rb DEV: Move user count update for channels to ensure_consistency! (#22321) 2023-07-03 11:41:51 +10:00