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