mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 20:34:52 +00:00
This PR changes how we track which lists are available for a topic and how we decide which is the active one. The new approach centralizes everything in the service, and exposes functions for adding/removing a list, which each calls via `did-insert/will-destroy` modifiers. It makes it much easier to track and update state when navigated to another topic or PM, ensuring things get updated correctly.