summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-08-01 15:51:09 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-08-08 15:26:34 +0200
commit0277922f4b4f1fa3cc93ed2dcdd2cc7022b2ad22 (patch)
tree232bb9e22e183aaf0bef1fab40913892b6592b6c /app/components
parentc75a69161c86a59e8e8efdcd0d453f5639d5b895 (diff)
downloadmullvadvpn-0277922f4b4f1fa3cc93ed2dcdd2cc7022b2ad22.tar.xz
mullvadvpn-0277922f4b4f1fa3cc93ed2dcdd2cc7022b2ad22.zip
Remove App.activationStateChangedEvent due to regression between 1.3-rc and 1.3 release
Diffstat (limited to 'app/components')
-rw-r--r--app/components/Account.js16
1 files changed, 1 insertions, 15 deletions
diff --git a/app/components/Account.js b/app/components/Account.js
index dd4994c76c..e7a39b68ed 100644
--- a/app/components/Account.js
+++ b/app/components/Account.js
@@ -1,7 +1,7 @@
// @flow
import moment from 'moment';
import * as React from 'react';
-import { Component, Text, View, App, Types } from 'reactxp';
+import { Component, Text, View } from 'reactxp';
import * as AppButton from './AppButton';
import { Layout, Container } from './Layout';
import NavigationBar, { BackBarItem } from './NavigationBar';
@@ -34,8 +34,6 @@ export default class Account extends Component<Props, State> {
showAccountTokenCopiedMessage: false,
};
- _activationStateToken: ?Types.SubscriptionToken;
-
_isMounted = false;
_copyTimer: ?TimeoutID;
@@ -43,12 +41,6 @@ export default class Account extends Component<Props, State> {
componentDidMount() {
this._isMounted = true;
this._refreshAccountExpiry();
-
- this._activationStateToken = App.activationStateChangedEvent.subscribe((activationState) => {
- if (activationState === Types.AppActivationState.Active) {
- this._refreshAccountExpiry();
- }
- });
}
componentWillUnmount() {
@@ -57,12 +49,6 @@ export default class Account extends Component<Props, State> {
if (this._copyTimer) {
clearTimeout(this._copyTimer);
}
-
- const activationStateToken = this._activationStateToken;
- if (activationStateToken) {
- activationStateToken.unsubscribe();
- this._activationStateToken = null;
- }
}
onAccountTokenClick() {