fix(replies): Blocks `jumpToMessage` for deleted and unknown messages

Fixes: #10614
This commit is contained in:
Boris Melnik 2023-05-15 19:08:14 +03:00
parent b24648de09
commit ae2e495a50
1 changed files with 3 additions and 2 deletions

View File

@ -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