mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 17:55:59 +08:00
5f4911dae8
* FIX: Channel archive N1 when serializing current user The `ChatChannelSerializer` serializes the archive for the channel if it is present, however this was causing an N1 for the current user serializer in the case of DM channels, which were not doing `includes(:chat_channel_archive)` in the `ChatChannelFetcher`. DM channels cannot be archived, so we can just never try to serialize the archive for DM channels in `ChatChannelSerializer`, which removes the N1. * DEV: Add N1 performance spec for latest.html preloading We modify current user serializer in chat, so it's a good idea to have some N1 performance specs to avoid regressions here. |
||
---|---|---|
.. | ||
admin_chat_index_serializer.rb | ||
base_chat_channel_membership_serializer.rb | ||
chat_channel_index_serializer.rb | ||
chat_channel_search_serializer.rb | ||
chat_channel_serializer.rb | ||
chat_in_reply_to_serializer.rb | ||
chat_message_serializer.rb | ||
chat_view_serializer.rb | ||
chat_webhook_event_serializer.rb | ||
direct_message_serializer.rb | ||
incoming_chat_webhook_serializer.rb | ||
reviewable_chat_message_serializer.rb | ||
structured_channel_serializer.rb | ||
user_chat_channel_membership_serializer.rb | ||
user_chat_message_bookmark_serializer.rb | ||
user_with_custom_fields_and_status_serializer.rb |