mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:46:08 +08: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