discourse/plugins/chat/app
Joffrey JAFFEUX c996b7fe4b
FIX: prevents readonly mode to crash channel_messages#index (#22987)
Prior to this fix `context.membership&.update!(last_viewed_at: Time.zone.now)` would generate an update statement from a GET request which is not permitted by default when in readonly mode.

The usual fix in this case is to check for readonly or rescue an error, however, this common pattern of updating "last seen" or similar can be better handled in a `Schedule::Defer` block, which won't raise the `ActiveRecord::ReadOnlyError` when in readonly and will also prevent the controller to wait for this operation.
2023-08-07 16:34:22 +02:00
..
controllers/chat SECURITY: Impose a upper bound on limit params in various controllers 2023-07-28 12:53:46 +01:00
helpers/chat FEATURE: Mark all chat channels read with a shortcut (#20629) 2023-03-22 13:24:07 +10:00
jobs DEV: moves logic from job to a service (#22691) 2023-07-27 10:25:41 +02:00
models DEV: Refactor chat channel fetching 2023-07-27 11:55:17 +02:00
policies DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
queries/chat FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
serializers/chat FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
services FIX: prevents readonly mode to crash channel_messages#index (#22987) 2023-08-07 16:34:22 +02:00
validators/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
views DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00