From 8708d53236bdf3ee248890ae502875ebd8cc519c Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 21 Jun 2018 00:22:26 +0200 Subject: [PATCH] Show assistant response text on web clients --- platypush/backend/http/static/js/assistant.google.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platypush/backend/http/static/js/assistant.google.js b/platypush/backend/http/static/js/assistant.google.js index 903cc17d3..09fef6bce 100644 --- a/platypush/backend/http/static/js/assistant.google.js +++ b/platypush/backend/http/static/js/assistant.google.js @@ -20,6 +20,15 @@ $(document).ready(function() { break; + case 'platypush.message.event.assistant.ResponseEvent': + createNotification({ + 'title': 'Assistant response', + 'text': event.args.response_text, + 'icon': 'volume-up', + }); + + break; + case 'platypush.message.event.assistant.ConversationEndEvent': break; }