Do not start sync thread if user is disconnected
This commit is contained in:
@@ -102,6 +102,13 @@ impl Actor for MatrixManagerActor {
|
||||
return Ok(());
|
||||
};
|
||||
|
||||
if !client.is_client_connected() {
|
||||
log::warn!(
|
||||
"Cannot start sync thread for {email:?} because Matrix account is not set!"
|
||||
);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
// Start thread
|
||||
log::debug!("Starting sync thread for {email:?}");
|
||||
let thread_id =
|
||||
|
||||
Reference in New Issue
Block a user