ref(ui): Use titleLink instead of ogScrapeUrl for handling link attachment.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-09-16 16:41:17 +05:30
committed by xsahil03x
parent e7fc5e4133
commit 6af4e07787
8 changed files with 49 additions and 57 deletions
@@ -1575,7 +1575,7 @@ class MessageInputState extends State<MessageInput> {
Widget _buildReplyToMessage() {
if (!_hasQuotedMessage) return const Offstage();
final containsUrl = widget.quotedMessage!.attachments
.any((element) => element.ogScrapeUrl != null) ==
.any((element) => element.titleLink != null) ==
true;
return QuotedMessageWidget(
reverse: true,