Merge pull request #477 from monich/replies

Fixed message reference in Replies chat
This commit is contained in:
Sebastian Wolf 2022-01-05 21:07:30 +01:00 committed by GitHub
commit fd46780b89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,9 +228,9 @@ ListItem {
Component.onCompleted: { Component.onCompleted: {
delegateComponentLoadingTimer.start(); delegateComponentLoadingTimer.start();
if (myMessage.reply_to_message_id) {
if (myMessage.reply_to_message_id !== 0) { tdLibWrapper.getMessage(myMessage.reply_in_chat_id ? myMessage.reply_in_chat_id : page.chatInformation.id,
tdLibWrapper.getMessage(page.chatInformation.id, myMessage.reply_to_message_id); myMessage.reply_to_message_id)
} }
} }