Re-subscribe to channels after signing back out

This commit is contained in:
Max Brunsfeld 2024-05-30 13:32:28 -07:00
parent 0f32145ecb
commit fda975fb76

View File

@ -1050,7 +1050,7 @@ impl ChannelStore {
fn handle_disconnect(&mut self, wait_for_reconnect: bool, cx: &mut ModelContext<Self>) {
cx.notify();
self.did_subscribe = false;
self.disconnect_channel_buffers_task.get_or_insert_with(|| {
cx.spawn(move |this, mut cx| async move {
if wait_for_reconnect {