Merge pull request #1530 from ChrisElliotUK/develop
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
applied correctly.
|
||||
- [[#1525]](https://github.com/GetStream/stream-chat-flutter/issues/1525) Fixed `StreamQuotedMessageWidget` message for
|
||||
deleted messages not being shown correctly.
|
||||
- [[#1529]](https://github.com/GetStream/stream-chat-flutter/issues/1529) Fixed fix `ClipboardData` requires non-nullable string as text on Flutter 3.10.
|
||||
|
||||
✅ Added
|
||||
|
||||
|
||||
@@ -1009,7 +1009,8 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
|
||||
title: Text(context.translations.copyMessageLabel),
|
||||
onClick: () {
|
||||
Navigator.of(context, rootNavigator: true).pop();
|
||||
Clipboard.setData(ClipboardData(text: widget.message.text));
|
||||
final text = widget.message.text;
|
||||
if (text != null) Clipboard.setData(ClipboardData(text: text));
|
||||
},
|
||||
),
|
||||
if (shouldShowEditAction) ...[
|
||||
@@ -1168,8 +1169,10 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
|
||||
? DisplayWidget.gone
|
||||
: DisplayWidget.show,
|
||||
),
|
||||
onCopyTap: (message) =>
|
||||
Clipboard.setData(ClipboardData(text: message.text)),
|
||||
onCopyTap: (message) {
|
||||
final text = message.text;
|
||||
if (text != null) Clipboard.setData(ClipboardData(text: text));
|
||||
},
|
||||
messageTheme: widget.messageTheme,
|
||||
reverse: widget.reverse,
|
||||
showDeleteMessage: shouldShowDeleteAction,
|
||||
|
||||
Reference in New Issue
Block a user