From 4060b40ccf06d3c80659b126da87d06d381b80a4 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 22 Sep 2020 15:42:06 -0400 Subject: [PATCH] fix: fix mentions box being too big because plainText was the pubKey --- .../Chat/ChatColumn/MessageComponents/NormalMessage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/NormalMessage.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/NormalMessage.qml index e49cb9b209..1c9ea83312 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/NormalMessage.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/NormalMessage.qml @@ -38,7 +38,7 @@ Item { property int chatVerticalPadding: 7 property int chatHorizontalPadding: 12 property bool longReply: chatReply.visible && repliedMessageContent.length > 54 - property bool longChatText: plainText.length > 54 + property bool longChatText: chatsModel.plainText(message).length > 54 id: chatBox color: isSticker ? Style.current.background : (isCurrentUser ? Style.current.blue : Style.current.secondaryBackground)