mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 17:33:44 +08:00
92839dc722
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. |
||
---|---|---|
.. | ||
chat | ||
category_spec.rb | ||
user_option_spec.rb | ||
user_spec.rb |