fix(replies): Blocks `jumpToMessage` for deleted and unknown messages
Fixes: #10614
This commit is contained in:
parent
b24648de09
commit
ae2e495a50
|
@ -552,6 +552,7 @@ Loader {
|
|||
}
|
||||
|
||||
onReplyMessageClicked: {
|
||||
if (!root.quotedMessageDeleted && root.quotedMessageFrom)
|
||||
root.messageStore.messageModule.jumpToMessage(root.responseToMessageWithId)
|
||||
}
|
||||
|
||||
|
@ -666,7 +667,7 @@ Loader {
|
|||
if (root.quotedMessageDeleted) {
|
||||
return qsTr("Message deleted")
|
||||
}
|
||||
if (!root.quotedMessageText && contentType !== StatusMessage.ContentType.Image) {
|
||||
if (!root.quotedMessageText && !root.quotedMessageFrom) {
|
||||
return qsTr("Unknown message. Try fetching more messages")
|
||||
}
|
||||
return root.quotedMessageText
|
||||
|
|
Loading…
Reference in New Issue