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:
parent
c76240e914
commit
f342b47e38
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ Page {
|
||||||
deleteMessageRemorseItem.execute(messageListItem, qsTr("Deleting message"), function() { tdLibWrapper.deleteMessages(chatInformation.id, [ display.id ]); } );
|
deleteMessageRemorseItem.execute(messageListItem, qsTr("Deleting message"), function() { tdLibWrapper.deleteMessages(chatInformation.id, [ display.id ]); } );
|
||||||
}
|
}
|
||||||
text: qsTr("Delete Message")
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue