Move the update mentions function to ChatDocumentHandler

Move the update mentions function to `ChatDocumentHandler`, this means `ChatbarCache` no longer needs to depend on `ChatDocumentHandler`
This commit is contained in:
James Graham
2025-04-05 20:01:07 +00:00
parent 420baaaf4a
commit 8af0ae6263
5 changed files with 46 additions and 57 deletions

View File

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