mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 01:27:25 +00:00
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…
x
Reference in New Issue
Block a user