Skip to content

Commit 70981f9

Browse files
committed
feat: reset group creation state in discardChanges method
1 parent bc87da4 commit 70981f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/config/providers/create_group_provider.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,16 @@ class CreateGroupNotifier extends StateNotifier<CreateGroupState> {
235235
void discardChanges() {
236236
state = state.copyWith(
237237
groupName: '',
238+
groupDescription: '',
238239
isGroupNameValid: false,
239240
isCreatingGroup: false,
240241
isUploadingImage: false,
241242
selectedImagePath: null,
243+
error: null,
244+
stackTrace: null,
245+
contactsWithKeyPackage: [],
246+
contactsWithoutKeyPackage: [],
247+
shouldShowInviteSheet: false,
242248
);
243249
}
244250
}

0 commit comments

Comments
 (0)