fix DHTRecordCubit open() retry bug

improve error state reporting for cubits
This commit is contained in:
Christien Rioux 2024-08-03 19:12:25 -05:00
parent ab9838f375
commit 83880d79ba
14 changed files with 38 additions and 24 deletions

View file

@ -358,6 +358,7 @@ class ChatComponentCubit extends Cubit<ChatComponentState> {
final asError = avMessagesState.asError;
if (asError != null) {
addError(asError.error, asError.stackTrace);
return currentState.copyWith(
unknownUsers: const IMap.empty(),
messageWindow: AsyncValue.error(asError.error, asError.stackTrace));