[Reply Message Widget] Remove default message text.

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2020-12-08 17:02:58 +05:30
parent c133002118
commit 4c3cb91318
+1 -1
View File
@@ -162,7 +162,7 @@ class ReplyMessageWidget extends StatelessWidget {
final isOnlyEmoji =
message.text.characters.every((c) => Emoji.byChar(c) != null);
var msg = _hasAttachments && !_containsText
? message.copyWith(text: message.attachments.last?.title ?? 'File')
? message.copyWith(text: message.attachments.last?.title ?? '')
: message;
if (msg.text.length > textLimit) {
msg = msg.copyWith(text: '${msg.text.substring(0, textLimit - 3)}...');