Fixup initial subscription handling when not yet registered

This commit is contained in:
Johannes Zellner
2022-12-14 10:15:21 +01:00
parent d4db845e0d
commit 16574c7c5e
3 changed files with 6 additions and 7 deletions

View File

@@ -54,8 +54,8 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
// NOTE: this function is exported and called from the appstore.js
$scope.updateSubscriptionStatus = function () {
Client.getSubscription(function (error, subscription) {
if (error && error.statusCode === 412) return; // ignore if not yet registered
if (error && error.statusCode === 402) return; // ignore if not yet registered
if (error && error.statusCode === 412) return; // not yet registered
if (error && error.statusCode === 402) return; // invalid appstore token
if (error) return console.error(error);
$scope.subscription = subscription;