Merge pull request #478 from monich/zero-message-id

Don't try to load message with zero id
This commit is contained in:
Sebastian Wolf 2022-01-05 21:00:16 +01:00 committed by GitHub
commit 699d65ff4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1130,7 +1130,7 @@ Page {
messageOverlayLoader.overlayMessage = chatPage.messageToShow; messageOverlayLoader.overlayMessage = chatPage.messageToShow;
messageOverlayLoader.active = true; messageOverlayLoader.active = true;
} }
if (typeof chatPage.messageIdToShow !== "undefined") { if (chatPage.messageIdToShow) {
tdLibWrapper.getMessage(chatPage.chatInformation.id, chatPage.messageIdToShow); tdLibWrapper.getMessage(chatPage.chatInformation.id, chatPage.messageIdToShow);
} }
} }