Reference chatPage correctly in new delete action
Co-authored-by: jgibbon <99138+jgibbon@users.noreply.github.com>
This commit is contained in:
parent
532b35e9f3
commit
01cdb18b46
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ Page {
|
||||||
width: parent.width
|
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)
|
visible: messageOptionsDrawer.myMessage.can_be_deleted_for_all_users || (messageOptionsDrawer.myMessage.can_be_deleted_only_for_self && messageOptionsDrawer.myMessage.chat_id === chatPage.myUserId)
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var chatId = page.chatInformation.id;
|
var chatId = chatPage.chatInformation.id;
|
||||||
var messageId = messageOptionsDrawer.myMessage.id;
|
var messageId = messageOptionsDrawer.myMessage.id;
|
||||||
Remorse.itemAction(messageOptionsDrawer.sourceItem, qsTr("Message deleted"), function() { tdLibWrapper.deleteMessages(chatId, [ messageId ]); });
|
Remorse.itemAction(messageOptionsDrawer.sourceItem, qsTr("Message deleted"), function() { tdLibWrapper.deleteMessages(chatId, [ messageId ]); });
|
||||||
messageOptionsDrawer.closeDrawer();
|
messageOptionsDrawer.closeDrawer();
|
||||||
|
|
Loading…
Reference in a new issue