Merge pull request #58 from monich/self-delete

Allow to delete messages from your own private chat
This commit is contained in:
Sebastian Wolf 2020-10-07 22:19:05 +02:00 committed by GitHub
commit 03208e47f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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