From e15e10d3192b4bf41c92d8f3a0671cb199266a6d 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 --- 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 deeda244b..7853dcdc9 100644 --- a/imports/NeoChat/Component/ChatBox/ChatBox.qml +++ b/imports/NeoChat/Component/ChatBox/ChatBox.qml @@ -232,6 +232,14 @@ Item { chatBar.inputFieldForceActiveFocusTriggered() } + Connections { + target: RoomManager + + function onCurrentRoomChanged() { + chatBar.userAutocompleted = {}; + } + } + Connections { target: ChatBoxHelper