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.
This commit is contained in:
Slava Monich 2020-10-07 02:11:44 +03:00
parent c76240e914
commit f342b47e38

View file

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