mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-10 15:10:14 -04:00
fix DHTRecordCubit open() retry bug
improve error state reporting for cubits
This commit is contained in:
parent
ab9838f375
commit
83880d79ba
14 changed files with 38 additions and 24 deletions
|
@ -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));
|
||||
|
|
|
@ -180,6 +180,7 @@ class SingleContactMessagesCubit extends Cubit<SingleContactMessagesState> {
|
|||
_reconciliation = MessageReconciliation(
|
||||
output: _reconciledMessagesCubit!,
|
||||
onError: (e, st) {
|
||||
addError(e, st);
|
||||
emit(AsyncValue.error(e, st));
|
||||
});
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ class EmptyChatWidget extends StatelessWidget {
|
|||
const EmptyChatWidget({super.key});
|
||||
|
||||
@override
|
||||
// ignore: prefer_expression_function_bodies
|
||||
Widget build(
|
||||
BuildContext context,
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue