mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +03:00
add dc_accounts_maybe_network_lost() (#2550)
This commit is contained in:
@@ -219,6 +219,13 @@ impl Accounts {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn maybe_network_lost(&self) {
|
||||
let accounts = &*self.accounts.read().await;
|
||||
for account in accounts.values() {
|
||||
account.maybe_network_lost().await;
|
||||
}
|
||||
}
|
||||
|
||||
/// Unified event emitter.
|
||||
pub async fn get_event_emitter(&self) -> EventEmitter {
|
||||
let emitters: Vec<_> = self
|
||||
|
||||
Reference in New Issue
Block a user