fix: correct test failures and error propagation
- Add CacheScope provider in UserProfileCacheRepository tests - Remove catch blocks that swallowed errors in _loadHistory/_loadMoreHistory - Errors now properly propagate to switchUser() caller
This commit is contained in:
@@ -83,10 +83,6 @@ class InboxRepositoryImpl extends CachedRepository<List<InboxMessage>>
|
||||
removeCacheKey(_messagesKey(true)),
|
||||
removeCacheKey(_messagesKey(null)),
|
||||
]);
|
||||
_logger.info(
|
||||
message: 'Message marked as read',
|
||||
extra: {'message_id': messageId},
|
||||
);
|
||||
return message;
|
||||
} catch (e, stackTrace) {
|
||||
_logger.error(
|
||||
|
||||
Reference in New Issue
Block a user