discourse/plugins/chat/app/services
Loïc Guitaut 050828d1de DEV: Allow chat services to have optional models
This is extracted from #22390.

This patch adds a new `optional` option to the `model` step. This
means if an optional model returns something blank (`nil` or an empty
collection) then the service won’t fail and will execute the next step.
However if a model is properly returned, the step will try to check if
it is valid or not (if it responds to `#invalid?`). If the model isn’t
valid, then the step will fail (so no change here).
2023-07-20 17:27:44 +02:00
..
chat FEATURE: Show unread in sidebar for unread channel threads (#22342) 2023-07-17 13:00:49 +10:00
service DEV: Allow chat services to have optional models 2023-07-20 17:27:44 +02:00
service.rb DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00