discourse/plugins/chat/spec/models
Joffrey JAFFEUX 92839dc722
FIX: ensures an empty last message won't cause errors (#23647)
This would cause an error when deleting the original message of a thread, due to the non existing `last_message`. This fix is implemented using the null pattern.

Note this commit is also using this opportunity to unify naming of null objects, `Chat::DeletedUser` becomes `Chat::NullUser`, it feels better to have a name describing what is the object, instead of a name describing why this object has to be used, which can change depending on cases.
2023-09-25 12:43:04 +02:00
..
chat FIX: ensures an empty last message won't cause errors (#23647) 2023-09-25 12:43:04 +02:00
category_spec.rb DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
user_option_spec.rb FEATURE: implements user based sidebar mode (#23078) 2023-08-18 20:33:07 +02:00
user_spec.rb