From cfe34e5303bf39db3c2c8e725420962fbfdf8964 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sun, 19 Aug 2018 15:10:32 +0800 Subject: [PATCH] Do not send notification when window is active. Bump version to 200. --- org.eu.encom.matrique.appdata.xml | 1 + qml/Room.qml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eu.encom.matrique.appdata.xml b/org.eu.encom.matrique.appdata.xml index e0ed44a..621378b 100644 --- a/org.eu.encom.matrique.appdata.xml +++ b/org.eu.encom.matrique.appdata.xml @@ -45,6 +45,7 @@ intense + diff --git a/qml/Room.qml b/qml/Room.qml index 32d990d..3b1acb1 100644 --- a/qml/Room.qml +++ b/qml/Room.qml @@ -16,7 +16,7 @@ Page { connection: page.connection onRoomAdded: setting.lazyLoad ? {} : room.getPreviousContent(20) - onNewMessage: matriqueController.showMessage(roomName, content, icon) + onNewMessage: window.active ? {} : matriqueController.showMessage(roomName, content, icon) } RowLayout {