From a6d469a99958b14719b598c108d22b862000545c Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 26 Dec 2021 04:50:37 +0200 Subject: [PATCH] Don't try to load message with zero id chatPage.messageIdToShow can be defined and yet be zero --- qml/pages/ChatPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/pages/ChatPage.qml b/qml/pages/ChatPage.qml index 9b683e7..de965ba 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -1130,7 +1130,7 @@ Page { messageOverlayLoader.overlayMessage = chatPage.messageToShow; messageOverlayLoader.active = true; } - if (typeof chatPage.messageIdToShow !== "undefined") { + if (chatPage.messageIdToShow) { tdLibWrapper.getMessage(chatPage.chatInformation.id, chatPage.messageIdToShow); } }