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 =
|
proc deleteMessage*(self: MessageView, channelId: string, messageId: string): bool =
|
||||||
result = self.messageList[channelId].deleteMessage(messageId)
|
result = self.messageList[channelId].deleteMessage(messageId)
|
||||||
if (result):
|
if (result):
|
||||||
|
self.pinnedMessagesList[channelId].deleteMessage(messageId)
|
||||||
self.hideMessage(messageId)
|
self.hideMessage(messageId)
|
||||||
|
|
||||||
proc deleteMessageWhichReplacedMessageWithId*(self: MessageView, channelId: string, messageId: string): bool =
|
proc deleteMessageWhichReplacedMessageWithId*(self: MessageView, channelId: string, messageId: string): bool =
|
||||||
|
|
|
@ -87,8 +87,8 @@ ModalPopup {
|
||||||
text: confirmationDialog.cancelButtonLabel
|
text: confirmationDialog.cancelButtonLabel
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (executeConfirm && typeof executeConfirm === "function") {
|
if (executeCancel && typeof executeCancel === "function") {
|
||||||
executeConfirm()
|
executeCancel()
|
||||||
}
|
}
|
||||||
confirmationDialog.cancelButtonClicked()
|
confirmationDialog.cancelButtonClicked()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue