diff --git a/src/qml/Chat/Chat.qml b/src/qml/Chat/Chat.qml index 41c5d816..d9515215 100644 --- a/src/qml/Chat/Chat.qml +++ b/src/qml/Chat/Chat.qml @@ -18,6 +18,7 @@ HPage { readonly property var roomInfo: Utils.getItem( modelSources[["Room", userId]] || [], "room_id", roomId ) || "waiting" + onRoomInfoChanged: { if (roomInfo.left) { // The room will most likely be gone on client restart diff --git a/src/qml/event_handlers.js b/src/qml/event_handlers.js index 78c1b120..3359e79d 100644 --- a/src/qml/event_handlers.js +++ b/src/qml/event_handlers.js @@ -7,7 +7,9 @@ function onExitRequested(exitCode) { function onAlertRequested(msec) { - window.alert(msec) + if (Qt.application.state != Qt.ApplicationActive) { + window.alert(msec) + } }