rename event also in core

This commit is contained in:
Simon Laux
2024-01-13 11:40:02 +01:00
committed by bjoern
parent 060c9c8aa1
commit de86b8a96e
5 changed files with 12 additions and 14 deletions

View File

@@ -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<()> {

View File

@@ -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,
}
}
}