From af5a2b6c92d617ef39395b002ffca0a846bbc262 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 26 Dec 2021 04:46:52 +0200 Subject: [PATCH] Fixed message reference in Replies chat According to td_api.tl: @reply_in_chat_id If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different reply_in_chat_id and chat_id --- qml/components/MessageListViewItem.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qml/components/MessageListViewItem.qml b/qml/components/MessageListViewItem.qml index d057653..3dfa05a 100644 --- a/qml/components/MessageListViewItem.qml +++ b/qml/components/MessageListViewItem.qml @@ -228,9 +228,9 @@ ListItem { Component.onCompleted: { delegateComponentLoadingTimer.start(); - - if (myMessage.reply_to_message_id !== 0) { - tdLibWrapper.getMessage(page.chatInformation.id, myMessage.reply_to_message_id); + if (myMessage.reply_to_message_id) { + tdLibWrapper.getMessage(myMessage.reply_in_chat_id ? myMessage.reply_in_chat_id : page.chatInformation.id, + myMessage.reply_to_message_id) } }