mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 20:54:11 +08:00
f0ea57e30e
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. |
||
---|---|---|
.. | ||
drawer_spec.rb | ||
mobile_spec.rb | ||
no_sidebar_spec.rb | ||
sidebar_spec.rb |