File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
packages/stream_chat_flutter Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 2121
2222- Fixed null errors in web from markdown.
2323- Fixed bug causing background events to be sent in foreground.
24+ - Added ` onThreadTap ` parameter to ` MessageWidgetContent ` to enable thread tap action.
2425
2526## 7.3.0
2627
Original file line number Diff line number Diff line change @@ -726,6 +726,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
726726 attachmentShape: widget.attachmentShape,
727727 onAttachmentTap: widget.onAttachmentTap,
728728 onReplyTap: widget.onReplyTap,
729+ onThreadTap: widget.onThreadTap,
729730 onShowMessage: widget.onShowMessage,
730731 attachmentActionsModalBuilder:
731732 widget.attachmentActionsModalBuilder,
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ class MessageWidgetContent extends StatelessWidget {
6363 required this .showUsername,
6464 required this .showEditedLabel,
6565 required this .messageWidget,
66+ required this .onThreadTap,
6667 this .onUserAvatarTap,
6768 this .borderRadiusGeometry,
6869 this .borderSide,
@@ -160,6 +161,9 @@ class MessageWidgetContent extends StatelessWidget {
160161 /// {@macro onReplyTap}
161162 final void Function (Message )? onReplyTap;
162163
164+ /// {@macro onThreadTap}
165+ final void Function (Message )? onThreadTap;
166+
163167 /// {@macro attachmentActionsBuilder}
164168 final AttachmentActionsBuilder ? attachmentActionsModalBuilder;
165169
@@ -429,6 +433,7 @@ class MessageWidgetContent extends StatelessWidget {
429433
430434 Widget _buildBottomRow (BuildContext context) {
431435 final defaultWidget = BottomRow (
436+ onThreadTap: onThreadTap,
432437 message: message,
433438 reverse: reverse,
434439 messageTheme: messageTheme,
You can’t perform that action at this time.
0 commit comments