From ae3e395b47d4e6605a166d3df415e5bb3b7382ae Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 29 May 2021 23:54:24 +0200 Subject: [PATCH] Reinitialize completion list after switching room (cherry picked from commit e15e10d3192b4bf41c92d8f3a0671cb199266a6d) --- imports/NeoChat/Component/ChatBox/ChatBox.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/imports/NeoChat/Component/ChatBox/ChatBox.qml b/imports/NeoChat/Component/ChatBox/ChatBox.qml index f060edf54..1d953fb88 100644 --- a/imports/NeoChat/Component/ChatBox/ChatBox.qml +++ b/imports/NeoChat/Component/ChatBox/ChatBox.qml @@ -227,6 +227,14 @@ Item { chatBar.inputFieldForceActiveFocusTriggered() } + Connections { + target: RoomManager + + function onCurrentRoomChanged() { + chatBar.userAutocompleted = {}; + } + } + Connections { target: ChatBoxHelper