Revert "Convert telemetry into a model"
This reverts commit 6e4268a471.
This commit is contained in:
@@ -121,7 +121,7 @@ pub struct Client {
|
||||
id: AtomicU64,
|
||||
peer: Arc<Peer>,
|
||||
http: Arc<dyn HttpClient>,
|
||||
telemetry: Model<Telemetry>,
|
||||
telemetry: Arc<Telemetry>,
|
||||
state: RwLock<ClientState>,
|
||||
|
||||
#[allow(clippy::type_complexity)]
|
||||
@@ -501,12 +501,8 @@ impl Client {
|
||||
}));
|
||||
}
|
||||
Status::SignedOut | Status::UpgradeRequired => {
|
||||
cx.update(|cx| {
|
||||
self.telemetry.update(cx, |this, cx| {
|
||||
this.set_authenticated_user_info(None, false, cx)
|
||||
})
|
||||
})
|
||||
.log_err();
|
||||
cx.update(|cx| self.telemetry.set_authenticated_user_info(None, false, cx))
|
||||
.log_err();
|
||||
state._reconnect_task.take();
|
||||
}
|
||||
_ => {}
|
||||
@@ -1324,7 +1320,7 @@ impl Client {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn telemetry(&self) -> &Model<Telemetry> {
|
||||
pub fn telemetry(&self) -> &Arc<Telemetry> {
|
||||
&self.telemetry
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user