From 01cdb18b46e4e53cdc147c7503c117a881f3f3f4 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Tue, 16 Feb 2021 18:47:12 +0100 Subject: [PATCH] Reference chatPage correctly in new delete action Co-authored-by: jgibbon <99138+jgibbon@users.noreply.github.com> --- 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 a91f5dd..7a2c18f 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -793,7 +793,7 @@ Page { width: parent.width visible: messageOptionsDrawer.myMessage.can_be_deleted_for_all_users || (messageOptionsDrawer.myMessage.can_be_deleted_only_for_self && messageOptionsDrawer.myMessage.chat_id === chatPage.myUserId) onClicked: { - var chatId = page.chatInformation.id; + var chatId = chatPage.chatInformation.id; var messageId = messageOptionsDrawer.myMessage.id; Remorse.itemAction(messageOptionsDrawer.sourceItem, qsTr("Message deleted"), function() { tdLibWrapper.deleteMessages(chatId, [ messageId ]); }); messageOptionsDrawer.closeDrawer();