mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 22:46:29 +03:00
rename event also in core
This commit is contained in:
@@ -233,7 +233,7 @@ impl CommandApi {
|
||||
|
||||
/// Performs a background fetch for all accounts in parallel with a timeout.
|
||||
///
|
||||
/// The `BackgroundFetchCompletedForAllAccounts` event is emitted at the end,
|
||||
/// The `AccountsBackgroundFetchDone` event is emitted at the end,
|
||||
/// process all events until you get this one and you can safely return to the background
|
||||
/// without forgeting to create notifications caused by timing race conditions.
|
||||
async fn background_fetch_for_all_accounts(&self, timeout_in_seconds: f64) -> Result<()> {
|
||||
|
||||
@@ -251,7 +251,7 @@ pub enum EventType {
|
||||
/// that all events emitted during the background fetch were processed.
|
||||
///
|
||||
/// This event is only emitted by the account manager
|
||||
BackgroundFetchCompletedForAllAccounts,
|
||||
AccountsBackgroundFetchDone,
|
||||
}
|
||||
|
||||
impl From<CoreEventType> for EventType {
|
||||
@@ -360,9 +360,7 @@ impl From<CoreEventType> for EventType {
|
||||
CoreEventType::WebxdcInstanceDeleted { msg_id } => WebxdcInstanceDeleted {
|
||||
msg_id: msg_id.to_u32(),
|
||||
},
|
||||
CoreEventType::BackgroundFetchCompletedForAllAccounts => {
|
||||
BackgroundFetchCompletedForAllAccounts
|
||||
}
|
||||
CoreEventType::AccountsBackgroundFetchDone => AccountsBackgroundFetchDone,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user