Skip to content

Commit

Permalink
fix(widgets): Never close reply bar in chat pages
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Aug 21, 2024
1 parent 8f267fb commit 9388254
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/widgets/reply_bar/reply_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ class _ReplyBarWrapperState extends State<ReplyBar> {
if (!hasLogin) {
controller.text = context.t.threadPage.needLogin;
onTapCallback = null;
} else if (closed) {
} else if (closed &&
// Never close in chat page.
(widget.replyType != ReplyTypes.chat &&
widget.replyType != ReplyTypes.chatHistory)) {
controller.text = context.t.threadPage.closed;
onTapCallback = null;
} else {
Expand Down

0 comments on commit 9388254

Please sign in to comment.