From b830f354165d869bf3d92ffeda124bb5fae1741d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Vel=C3=A1squez=20L=C3=B3pez?= Date: Sun, 28 Mar 2021 17:06:05 -0500 Subject: [PATCH] fix image state when start chatting --- packages/chatty/lib/ui/profile_verify/profile_verify_cubit.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chatty/lib/ui/profile_verify/profile_verify_cubit.dart b/packages/chatty/lib/ui/profile_verify/profile_verify_cubit.dart index 2593f36..cc82668 100644 --- a/packages/chatty/lib/ui/profile_verify/profile_verify_cubit.dart +++ b/packages/chatty/lib/ui/profile_verify/profile_verify_cubit.dart @@ -27,8 +27,8 @@ class ProfileVerifyCubit extends Cubit { final ProfileSignInUseCase _profileSignInUseCase; void startChatting() async { - emit(ProfileState(null, loading: true)); final file = state.file; + emit(ProfileState(file, loading: true)); final name = nameController.text; await _profileSignInUseCase.verify(ProfileInput( imageFile: file,