[Reply Message Widget] Remove default message text.
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -162,7 +162,7 @@ class ReplyMessageWidget extends StatelessWidget {
|
|||||||
final isOnlyEmoji =
|
final isOnlyEmoji =
|
||||||
message.text.characters.every((c) => Emoji.byChar(c) != null);
|
message.text.characters.every((c) => Emoji.byChar(c) != null);
|
||||||
var msg = _hasAttachments && !_containsText
|
var msg = _hasAttachments && !_containsText
|
||||||
? message.copyWith(text: message.attachments.last?.title ?? 'File')
|
? message.copyWith(text: message.attachments.last?.title ?? '')
|
||||||
: message;
|
: message;
|
||||||
if (msg.text.length > textLimit) {
|
if (msg.text.length > textLimit) {
|
||||||
msg = msg.copyWith(text: '${msg.text.substring(0, textLimit - 3)}...');
|
msg = msg.copyWith(text: '${msg.text.substring(0, textLimit - 3)}...');
|
||||||
|
|||||||
Reference in New Issue
Block a user