discourse/plugins/chat/app/serializers/chat
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
..
admin_chat_index_serializer.rb
base_channel_membership_serializer.rb FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
base_thread_membership_serializer.rb FEATURE: Allow users to manually track threads without replying (#22100) 2023-06-16 12:08:26 +10:00
channel_index_serializer.rb
channel_search_serializer.rb
channel_serializer.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
chatable_user_serializer.rb FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
chatables_serializer.rb FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
direct_message_serializer.rb FIX: ensures an empty last message won't cause errors (#23647) 2023-09-25 12:43:04 +02:00
in_reply_to_serializer.rb FIX: ensures an empty last message won't cause errors (#23647) 2023-09-25 12:43:04 +02:00
incoming_webhook_serializer.rb
last_message_serializer.rb FIX: created_at datetime format inconsistencies in chat (#22611) 2023-07-14 16:05:01 +10:00
message_serializer.rb FIX: ensures an empty last message won't cause errors (#23647) 2023-09-25 12:43:04 +02:00
message_user_serializer.rb
messages_serializer.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
reviewable_message_serializer.rb DEV: Include context question for chat reviewables (#23332) 2023-09-05 10:11:39 +08:00
structured_channel_serializer.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
thread_list_serializer.rb UI: refines thread list item (#23207) 2023-08-24 18:45:20 +02:00
thread_original_message_serializer.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
thread_preview_serializer.rb FIX: created_at datetime format inconsistencies in chat (#22611) 2023-07-14 16:05:01 +10:00
thread_serializer.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
user_channel_membership_serializer.rb
user_message_bookmark_serializer.rb
user_with_custom_fields_and_status_serializer.rb
webhook_event_serializer.rb