From f6d16366eb62197e765c15a67188628af2581bf4 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 15 Jan 2018 13:37:48 +0100 Subject: [PATCH] Changed assistant stop_conv logic on match --- platypush/message/event/assistant/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/message/event/assistant/__init__.py b/platypush/message/event/assistant/__init__.py index 528e6803..aabb384a 100644 --- a/platypush/message/event/assistant/__init__.py +++ b/platypush/message/event/assistant/__init__.py @@ -33,7 +33,7 @@ class SpeechRecognizedEvent(AssistantEvent): def matches_condition(self, condition): result = super().matches_condition(condition) - if result.is_match and self._assistant and not condition.priority: + if result.is_match and self._assistant and 'phrase' in condition.args: self._assistant.stop_conversation() return result