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
This commit is contained in:
Slava Monich 2021-12-26 04:46:52 +02:00
parent 985e7341dc
commit af5a2b6c92

View file

@ -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)
}
}