discourse/plugins/chat/spec/system/list_channels
David Battersby f0ea57e30e
FIX: chat channel sort order consistency in sidebar (#30180)
This change creates a shallow copy of the public message channels so we don't change the original array while sorting.

Without this change the publicMessageChannels getter cache gets invalidated and cached again with the sorted channels array instead, which causes a bug where the sidebar channel list sorting order is updated by activity when user interacts with the chat drawer.
2024-12-09 15:36:41 +04:00
..
drawer_spec.rb
mobile_spec.rb
no_sidebar_spec.rb
sidebar_spec.rb FIX: chat channel sort order consistency in sidebar (#30180) 2024-12-09 15:36:41 +04:00