Don't try to load message with zero id

chatPage.messageIdToShow can be defined and yet be zero
This commit is contained in:
Slava Monich 2021-12-26 04:50:37 +02:00
parent 985e7341dc
commit a6d469a999

View file

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