diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index f77e6db75..c8dea6047 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -625,8 +625,10 @@ angular.module('copayApp.controllers').controller('confirmController', function( ) && !isOn) { $scope.sendStatus = 'success'; - if ($state.current.name === "tabs.send.confirm") // XX SP: Otherwise all open wallets on other devices play this sound if you have been in a send flow before on that device. + if ($state.current.name === "tabs.send.confirm") { // XX SP: Otherwise all open wallets on other devices play this sound if you have been in a send flow before on that device. soundService.play('misc/payment_sent.mp3'); + } + firebaseEventsService.logEvent('sent_bitcoin', { coin: $scope.wallet.coin }); $timeout(function() { $scope.$digest(); diff --git a/src/js/controllers/tab-receive.js b/src/js/controllers/tab-receive.js index dcae37131..5c9cef70f 100644 --- a/src/js/controllers/tab-receive.js +++ b/src/js/controllers/tab-receive.js @@ -131,8 +131,9 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi } $scope.paymentReceivedCoin = $scope.wallet.coin; - if ($state.current.name === "tabs.receive") + if ($state.current.name === "tabs.receive") { soundService.play('misc/payment_received.mp3'); + } $scope.$apply(function () { $scope.showingPaymentReceived = true;