Skip to content

Commit 841bd31

Browse files
committed
fix(reply_bar): fix text not sync to outer text field if is empty
This issue is introduced in c357155 where fixing a double dispose isssue, but it's not clear why skip the sync when text is empty.
1 parent 2878eba commit 841bd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/reply_bar/reply_bar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ final class _ReplyBarState extends State<_ReplyBar> with LoggerMixin {
651651
_replyFocusNode.dispose();
652652
_authStatusSub.cancel();
653653
final text = _replyRichController.toBBCode();
654-
if (text.trim().isNotEmpty && _canSyncBBCodeOnDispose) {
654+
if (_canSyncBBCodeOnDispose) {
655655
// Only save text that intend to reply when that text is not empty.
656656
//
657657
// Only send text to outside controller if could do so: In some situation

0 commit comments

Comments
 (0)