fix(delete): fix deleting pins when deleting messages
This commit is contained in:
parent
93f602adf2
commit
6dc5e1177b
|
@ -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 =
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue