diff --git a/src/gui/Pages/AddChat/CreateRoom.qml b/src/gui/Pages/AddChat/CreateRoom.qml index 6969928a..69511fc2 100644 --- a/src/gui/Pages/AddChat/CreateRoom.qml +++ b/src/gui/Pages/AddChat/CreateRoom.qml @@ -45,6 +45,7 @@ HFlickableColumnPage { publicCheckBox.reset() encryptCheckBox.reset() blockOtherServersCheckBox.reset() + errorMessage.text = "" pageLoader.showPrevious() } diff --git a/src/gui/Pages/AddChat/DirectChat.qml b/src/gui/Pages/AddChat/DirectChat.qml index 777bc146..b7b0446c 100644 --- a/src/gui/Pages/AddChat/DirectChat.qml +++ b/src/gui/Pages/AddChat/DirectChat.qml @@ -75,8 +75,9 @@ HFlickableColumnPage { CancelButton { onClicked: { - userField.item.text = "" + userField.item.reset() errorMessage.text = "" + pageLoader.showPrevious() } } diff --git a/src/gui/Pages/AddChat/JoinRoom.qml b/src/gui/Pages/AddChat/JoinRoom.qml index 045d186b..1b03486a 100644 --- a/src/gui/Pages/AddChat/JoinRoom.qml +++ b/src/gui/Pages/AddChat/JoinRoom.qml @@ -49,7 +49,7 @@ HFlickableColumnPage { function cancel() { roomField.item.reset() - errorMessage.reset() + errorMessage.text = "" pageLoader.showPrevious() }