Fix crash when editing messages

This commit is contained in:
Tobias Fella
2025-04-02 21:19:08 +02:00
parent 0f75369658
commit b9bd12e451

View File

@@ -261,7 +261,7 @@ QQC2.Control {
documentHandler.document;
if (chatBarCache?.isEditing && chatBarCache.relationMessage.length > 0) {
textArea.text = chatBarCache.relationMessage;
root.chatBarCache.updateMentions(root.textDocument, documentHandler);
root.chatBarCache.updateMentions(textArea.textDocument, documentHandler);
textArea.forceActiveFocus();
textArea.cursorPosition = textArea.text.length;
}