CreateRoom: show message if creation fails

This commit is contained in:
miruka 2019-11-09 10:39:43 -04:00
parent c34676e5a0
commit 5d4b699104

View File

@ -29,6 +29,11 @@ HBox {
py.callClientCoro(userId, "room_create", args, roomId => { py.callClientCoro(userId, "room_create", args, roomId => {
button.loading = false button.loading = false
pageLoader.showRoom(userId, roomId) pageLoader.showRoom(userId, roomId)
}, (type, args) => {
button.loading = false
errorMessage.text =
qsTr("Unknown error - %1, %2").arg(type).arg(args)
}) })
}, },