From 93064ec5bfd716ab896e7a559e3b71df9f44e9f2 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 23 May 2021 18:38:52 +0200 Subject: [PATCH] Fix username autocompletion --- imports/NeoChat/Component/ChatBox/ChatBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/NeoChat/Component/ChatBox/ChatBar.qml b/imports/NeoChat/Component/ChatBox/ChatBar.qml index 75a4c847d..0509dd4d8 100644 --- a/imports/NeoChat/Component/ChatBox/ChatBar.qml +++ b/imports/NeoChat/Component/ChatBox/ChatBar.qml @@ -370,7 +370,7 @@ ToolBar { function complete() { documentHandler.replaceAutoComplete(completionMenu.currentDisplayText); - if (completionMenu.completionType === "username") { + if (completionMenu.completionType === ChatDocumentHandler.User) { userAutocompleted[completionMenu.currentDisplayText] = completionMenu.currentUserId; } }