From 0148949a4fecf0cce8985e41a6dfe5d4c4e3afd2 Mon Sep 17 00:00:00 2001 From: Valere Date: Thu, 23 Jan 2020 16:13:46 +0100 Subject: [PATCH] Fix / prevent verification toaster to show when in good room --- .../java/im/vector/riotx/features/popup/PopupAlertManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vector/src/main/java/im/vector/riotx/features/popup/PopupAlertManager.kt b/vector/src/main/java/im/vector/riotx/features/popup/PopupAlertManager.kt index 6d92d36d38..a5e3f21f96 100644 --- a/vector/src/main/java/im/vector/riotx/features/popup/PopupAlertManager.kt +++ b/vector/src/main/java/im/vector/riotx/features/popup/PopupAlertManager.kt @@ -120,6 +120,8 @@ object PopupAlertManager { } currentAlerter = next next?.let { + + if (next.shouldBeDisplayedIn?.invoke(currentActivity) == false) return val currentTime = System.currentTimeMillis() if (next.expirationTimestamp != null && currentTime > next.expirationTimestamp!!) { // skip