From 5d4b69910461a637e968975fd0e415dadc790857 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 9 Nov 2019 10:39:43 -0400 Subject: [PATCH] CreateRoom: show message if creation fails --- src/qml/Pages/AddChat/CreateRoom.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qml/Pages/AddChat/CreateRoom.qml b/src/qml/Pages/AddChat/CreateRoom.qml index e39ff302..c6c351da 100644 --- a/src/qml/Pages/AddChat/CreateRoom.qml +++ b/src/qml/Pages/AddChat/CreateRoom.qml @@ -29,6 +29,11 @@ HBox { py.callClientCoro(userId, "room_create", args, roomId => { button.loading = false pageLoader.showRoom(userId, roomId) + + }, (type, args) => { + button.loading = false + errorMessage.text = + qsTr("Unknown error - %1, %2").arg(type).arg(args) }) },