mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 00:56:39 +00:00
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: {
|
onReplyMessageClicked: {
|
||||||
|
if (!root.quotedMessageDeleted && root.quotedMessageFrom)
|
||||||
root.messageStore.messageModule.jumpToMessage(root.responseToMessageWithId)
|
root.messageStore.messageModule.jumpToMessage(root.responseToMessageWithId)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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…
x
Reference in New Issue
Block a user