fix(delete): fix deleting pins when deleting messages

This commit is contained in:
Jonathan Rainville 2021-07-19 11:44:39 -04:00 committed by Iuri Matias
parent 93f602adf2
commit 6dc5e1177b
2 changed files with 3 additions and 2 deletions

View File

@ -422,6 +422,7 @@ QtObject:
proc deleteMessage*(self: MessageView, channelId: string, messageId: string): bool =
result = self.messageList[channelId].deleteMessage(messageId)
if (result):
self.pinnedMessagesList[channelId].deleteMessage(messageId)
self.hideMessage(messageId)
proc deleteMessageWhichReplacedMessageWithId*(self: MessageView, channelId: string, messageId: string): bool =

View File

@ -87,8 +87,8 @@ ModalPopup {
text: confirmationDialog.cancelButtonLabel
anchors.bottom: parent.bottom
onClicked: {
if (executeConfirm && typeof executeConfirm === "function") {
executeConfirm()
if (executeCancel && typeof executeCancel === "function") {
executeCancel()
}
confirmationDialog.cancelButtonClicked()
}