If there was an error while the account was opened and migrated to the current version, then this function returns it. This function is useful because the key-contacts migration could fail due to bugs and then the account will not work properly. After opening an account, the UI should call this function and show the error string if one is returned.
(&self, account_id: u32)
| 395 | /// After opening an account, the UI should call this function |
| 396 | /// and show the error string if one is returned. |
| 397 | async fn get_migration_error(&self, account_id: u32) -> Result<Option<String>> { |
| 398 | let ctx = self.get_context(account_id).await?; |
| 399 | Ok(ctx.get_migration_error()) |
| 400 | } |
| 401 | |
| 402 | /// Copy file to blob dir. |
| 403 | async fn copy_to_blob_dir(&self, account_id: u32, path: String) -> Result<PathBuf> { |
nothing calls this directly
no test coverage detected