From ec1ba71db14f94f084fda114b87637e2d0bc56bb Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 23 Jun 2021 10:20:44 -0400 Subject: [PATCH] fix: prevMsgTimestamp and nextMsgTimestamp --- ui/app/AppLayouts/Chat/ChatColumn/Message.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/Message.qml b/ui/app/AppLayouts/Chat/ChatColumn/Message.qml index 5c3028918d..6beda1eba6 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/Message.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/Message.qml @@ -66,8 +66,8 @@ Item { property string authorCurrentMsg: "authorCurrentMsg" property string authorPrevMsg: "authorPrevMsg" - property string prevMsgTimestamp: chatsModel.messageList.getMessageData(prevMessageIndex, "timestamp") - property string nextMsgTimestamp: chatsModel.messageList.getMessageData(nextMessageIndex, "timestamp") + property string prevMsgTimestamp: chatsModel.messageView.messageList.getMessageData(prevMessageIndex, "timestamp") + property string nextMsgTimestamp: chatsModel.messageView.messageList.getMessageData(nextMessageIndex, "timestamp") property bool shouldRepeatHeader: ((parseInt(timestamp, 10) - parseInt(prevMsgTimestamp, 10)) / 60 / 1000) > Constants.repeatHeaderInterval