Commit 0d763e4284ef
tarball1 file changed+3-5
@@ -160,8 +160,6 @@ pub enum EngineError {
160160
ZeroCapacity,161161
#[error("could not build the sync service")]162162
SyncService(#[source] matrix_sdk_ui::sync_service::Error),163
- #[error("could not open the mentions service")]164
- MentionsStore(#[source] crate::Error),165163
#[error("the event receiver has closed")]166164
EventReceiverClosed,167165
#[error("engine task {task} panicked")]@@ -176,8 +174,7 @@ impl EngineError {
176174
Self::TaskPanicked { .. } => EngineErrorKind::Watcher,177175
Self::Unauthenticated178176
| Self::ZeroCapacity179
- | Self::SyncService(_)180
- | Self::MentionsStore(_) => EngineErrorKind::Other,177
+ | Self::SyncService(_) => EngineErrorKind::Other,181178
},182179
message: self.to_string(),183180
}@@ -375,7 +372,8 @@ impl Engine {
375372
config.clone(),376373
)377374
.await378
- .map_err(EngineError::MentionsStore)?;375
+ // a missing user id is all it still refuses, and that was turned away above376
+ .map_err(|_| EngineError::Unauthenticated)?;379377
let sync = Arc::new(380378
SyncService::builder(client.clone())381379
.with_offline_mode()