diff --git a/src/templates.php b/src/templates.php index 382ae2c..33e5cc2 100644 --- a/src/templates.php +++ b/src/templates.php @@ -111,6 +111,11 @@ class Template public function isValidFor(Activity $activity): bool { + // Is any trigger active? + if (!$this->triggerOnlyOnEmptyTitle && !$this->triggerAfterTimeout) { + return false; + } + if ($this->triggerOnlyOnEmptyTitle && $activity->title != "") { return false; }