discourse/plugins/chat
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
..
app FIX: prevents readonly mode to crash channel_messages#index (#22987) 2023-08-07 16:34:22 +02:00
assets DEV: Introduce decorator-position lint rule (#22937) 2023-08-04 12:26:06 +01:00
config DEV: Remove unused chat translations (#22925) 2023-08-02 17:15:49 +10:00
db DEV: Remove experimental setting row for chat threads (#22730) 2023-07-27 15:29:28 +02:00
lib DEV: a better way of picking of the earliest date (#22858) 2023-07-28 20:17:04 +04:00
public
spec FIX: prevents readonly mode to crash channel_messages#index (#22987) 2023-08-07 16:34:22 +02:00
test/javascripts FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
plugin.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.