mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
We need to set the local state of a channel before performing any async operations. Otherwise, multiple leave/join calls can race against each other and cause the local state to get out-of-sync with the server.
Followup to e70ed31a