account: start background watch job in init

When IsOnline was introduced, the background watch job stopped being
created when the connection was initialized. Restore that behavior.
pull/266/head
Manos Pitsidianakis 10 months ago
parent 8cb2a515e1
commit 0ee1b6e018
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -1900,6 +1900,7 @@ impl Account {
match is_online {
Ok(()) => {
if matches!(self.is_online, IsOnline::Err { ref value, ..} if !value.kind.is_authentication())
|| matches!(self.is_online, IsOnline::Uninit)
{
self.watch();
}

Loading…
Cancel
Save