Merge pull request #214 from Bitcoin-com/wallet/task/458

Wallet/task/458
This commit is contained in:
Brendon Duncan 2018-07-16 13:53:20 +12:00 committed by GitHub
commit 7dea47eb42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 7041 additions and 21 deletions

View file

@ -145,6 +145,16 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
}
$scope.paymentReceivedCoin = $scope.wallet.coin;
var channel = "firebase";
if (platformInfo.isNW) {
channel = "ga";
}
var log = new window.BitAnalytics.LogEvent("transfer_success", [{
"coin": $scope.wallet.coin,
"type": "incoming"
}], [channel, "adjust"]);
window.BitAnalytics.LogEventHandlers.postEvent(log);
if ($state.current.name === "tabs.receive") {
soundService.play('misc/payment_received.mp3');
}