From 14aca04f8edde11636378ac8bdacff071af31783 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sat, 15 Apr 2017 03:51:40 +1200 Subject: [PATCH] Checking and repairing deliver_message and sharing spotify auth --- mopidy_iris/core.py | 2 +- src/js/services/pusher/actions.js | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/mopidy_iris/core.py b/mopidy_iris/core.py index b4c0170d..d5719948 100755 --- a/mopidy_iris/core.py +++ b/mopidy_iris/core.py @@ -154,7 +154,7 @@ class IrisCore(object): 'message': error } - def deliver_message(self, data): + def deliver_message(self, data): to = data['to'] if to in self.connections: diff --git a/src/js/services/pusher/actions.js b/src/js/services/pusher/actions.js index c9c04739..6e9b6eb1 100755 --- a/src/js/services/pusher/actions.js +++ b/src/js/services/pusher/actions.js @@ -58,11 +58,13 @@ export function deliverBroadcast( data = null ){ export function sendAuthorization( recipient_connectionid, authorization, me ){ return { type: 'PUSHER_DELIVER_MESSAGE', - to: recipient_connectionid, - message: { - type: 'spotify_authorization', - authorization: authorization, - me: me + data: { + to: recipient_connectionid, + message: { + type: 'spotify_authorization', + authorization: authorization, + me: me + } } } }