Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalha07 committed Aug 20, 2024
1 parent b3a339e commit 36b9093
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/lib/features/chat/widgets/custom_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -744,19 +744,19 @@ class _TextInputWidgetConsumerState extends ConsumerState<_TextInputWidget> {
// save edit UI state also by pointing reference event id.
await saveDraft(widget.controller.text, next.selectedMessage!.id);
// frame delay to keep focus connected with keyboard.
// WidgetsBinding.instance.addPostFrameCallback((_) {
widget.chatFocus.requestFocus();
// });
WidgetsBinding.instance.addPostFrameCallback((_) {
widget.chatFocus.requestFocus();
});
}
} else if (next.selectedMessageState == SelectedMessageState.replyTo &&
(next.selectedMessage != prev?.selectedMessage ||
prev?.selectedMessageState != next.selectedMessageState)) {
// save reply UI state also by pointing reference event id.
await saveDraft(widget.controller.text, next.selectedMessage!.id);
// frame delay to keep focus connected with keyboard..
// WidgetsBinding.instance.addPostFrameCallback((_) {
widget.chatFocus.requestFocus();
// });
WidgetsBinding.instance.addPostFrameCallback((_) {
widget.chatFocus.requestFocus();
});
}
});
}
Expand Down

0 comments on commit 36b9093

Please sign in to comment.