Commit abc2e709 authored by Marcelo Rivera's avatar Marcelo Rivera

(feat): disable notifications on Pro standalone

1 merge request!486WIP: (feat): Minds Pro (development branch) - Release 2
Pipeline #77322059 running with stages
......@@ -60,11 +60,13 @@ export class Minds {
async ngOnInit() {
this.standalone = Boolean(window.Minds.pro);
this.notificationService.getNotifications();
if (!this.standalone) {
this.notificationService.getNotifications();
}
this.session.isLoggedIn(async (is) => {
if (is && !window.Minds.pro) { // TODO remove window.Minds.pro check from this line
if (!window.Minds.pro) {
if (is && !this.standalone) { // TODO remove window.Minds.pro check from this line
if (!this.standalone) {
this.showOnboarding = await this.onboardingService.showModal();
}
if (this.minds.user.language !== this.minds.language) {
......@@ -99,7 +101,7 @@ export class Minds {
this.web3Wallet.setUp();
this.webtorrent.setUp();
this.themeService.setUp();
}
......
......@@ -18,7 +18,9 @@ export class NotificationService {
if (!window.Minds.notifications_count)
window.Minds.notifications_count = 0;
this.listen();
if (!window.Minds.pro) {
this.listen();
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment