Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 wrong username when replying to message #174 #175

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [1.3.2] (Unreleased)

* **Fix**: [174](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/174) Fix
wrong username shown while replying to any messages.
* **Fix**: [134](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/134)
Added a reply message view for custom message type.
* **Feat**: [157](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/pull/157)
Expand Down
3 changes: 2 additions & 1 deletion lib/src/widgets/send_message_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ class SendMessageWidgetState extends State<SendMessageWidget> {

@override
Widget build(BuildContext context) {
final replyTitle = "${PackageStrings.replyTo} $_replyTo";
return widget.sendMessageBuilder != null
? Positioned(
right: 0,
Expand Down Expand Up @@ -136,6 +135,8 @@ class SendMessageWidgetState extends State<SendMessageWidget> {
children: [
ValueListenableBuilder<ReplyMessage>(
builder: (_, state, child) {
final replyTitle =
"${PackageStrings.replyTo} $_replyTo";
if (state.message.isNotEmpty) {
return Container(
decoration: BoxDecoration(
Expand Down