mirror of
https://github.com/discourse/discourse.git
synced 2025-03-07 10:55:43 +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