From 509047e2b01da6929ad69429e6fbe1f89d9d12d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Tue, 26 Jan 2016 10:38:27 -0300 Subject: [PATCH] use detect language in push notifications, save remote preferences when creating a new profile --- src/js/controllers/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index af458e8a0..ff0ef3469 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -1287,8 +1287,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r $rootScope.$on('Local/SubscribeNotifications', function(event) { if (!self.usePushNotifications) return; - - pushNotificationsService.enableNotifications(); + self.updateRemotePreferences({ + saveAll: true + }, function() { + $log.debug('Remote preferences saved'); + pushNotificationsService.enableNotifications(); + }); });