From f342b47e38be991400489cd7af9be237f1fd3fca Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Wed, 7 Oct 2020 02:11:44 +0300 Subject: [PATCH] Allow to delete messages from your own private chat They have "can_be_deleted_for_all_users": false and yet you can delete those because you are the only one who has access to your own private chat. --- 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 2848dc7..4d1565d 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -469,7 +469,7 @@ Page { deleteMessageRemorseItem.execute(messageListItem, qsTr("Deleting message"), function() { tdLibWrapper.deleteMessages(chatInformation.id, [ display.id ]); } ); } text: qsTr("Delete Message") - visible: display.can_be_deleted_for_all_users + visible: display.can_be_deleted_for_all_users || (display.can_be_deleted_only_for_self && display.chat_id === chatPage.myUserId) } }