Skip to content

Commit

Permalink
fix(ui): onThreadTap has been added in MessageWidgetContent to enable…
Browse files Browse the repository at this point in the history
… thread tap action. (#1988)
  • Loading branch information
roopak27 authored Nov 8, 2024
1 parent e19e361 commit 4afc504
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/stream_chat_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

- Fixed null errors in web from markdown.
- Fixed bug causing background events to be sent in foreground.
- Added `onThreadTap` parameter to `MessageWidgetContent` to enable thread tap action.

## 7.3.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
attachmentShape: widget.attachmentShape,
onAttachmentTap: widget.onAttachmentTap,
onReplyTap: widget.onReplyTap,
onThreadTap: widget.onThreadTap,
onShowMessage: widget.onShowMessage,
attachmentActionsModalBuilder:
widget.attachmentActionsModalBuilder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class MessageWidgetContent extends StatelessWidget {
required this.showUsername,
required this.showEditedLabel,
required this.messageWidget,
required this.onThreadTap,
this.onUserAvatarTap,
this.borderRadiusGeometry,
this.borderSide,
Expand Down Expand Up @@ -160,6 +161,9 @@ class MessageWidgetContent extends StatelessWidget {
/// {@macro onReplyTap}
final void Function(Message)? onReplyTap;

/// {@macro onThreadTap}
final void Function(Message)? onThreadTap;

/// {@macro attachmentActionsBuilder}
final AttachmentActionsBuilder? attachmentActionsModalBuilder;

Expand Down Expand Up @@ -429,6 +433,7 @@ class MessageWidgetContent extends StatelessWidget {

Widget _buildBottomRow(BuildContext context) {
final defaultWidget = BottomRow(
onThreadTap: onThreadTap,
message: message,
reverse: reverse,
messageTheme: messageTheme,
Expand Down

0 comments on commit 4afc504

Please sign in to comment.