diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-17 20:32:22 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-07-20 16:02:15 +0000 |
commit | 45373f655f68fdd0b320cde175b6108454ad4731 (patch) | |
tree | c1ccb0c73639d754b68a36a1977b74471fe4b566 /src/features/shareFranz | |
parent | New Crowdin updates (#1668) (diff) | |
download | ferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.tar.gz ferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.tar.zst ferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.zip |
Removed Franz paid plans features:
- serviceLimit
- planSelection
- trialStatusBar
and other Franz features that were for different tiers of subscription.
Diffstat (limited to 'src/features/shareFranz')
-rw-r--r-- | src/features/shareFranz/Component.js | 4 | ||||
-rw-r--r-- | src/features/shareFranz/index.js | 13 |
2 files changed, 4 insertions, 13 deletions
diff --git a/src/features/shareFranz/Component.js b/src/features/shareFranz/Component.js index f7f8dc41c..b66375453 100644 --- a/src/features/shareFranz/Component.js +++ b/src/features/shareFranz/Component.js | |||
@@ -36,11 +36,11 @@ const messages = defineMessages({ | |||
36 | }, | 36 | }, |
37 | shareTextEmail: { | 37 | shareTextEmail: { |
38 | id: 'feature.shareFranz.shareText.email', | 38 | id: 'feature.shareFranz.shareText.email', |
39 | defaultMessage: '!!! I\'ve added {count} services to Franz! Get the free app for WhatsApp, Messenger, Slack, Skype and co at www.meetfranz.com', | 39 | defaultMessage: '!!! I\'ve added {count} services to Ferdi! Get the free app for WhatsApp, Messenger, Slack, Skype and co at www.meetfranz.com', |
40 | }, | 40 | }, |
41 | shareTextTwitter: { | 41 | shareTextTwitter: { |
42 | id: 'feature.shareFranz.shareText.twitter', | 42 | id: 'feature.shareFranz.shareText.twitter', |
43 | defaultMessage: '!!! I\'ve added {count} services to Franz! Get the free app for WhatsApp, Messenger, Slack, Skype and co at www.meetfranz.com /cc @FranzMessenger', | 43 | defaultMessage: '!!! I\'ve added {count} services to Ferdi! Get the free app for WhatsApp, Messenger, Slack, Skype and co at www.meetfranz.com /cc @FranzMessenger', |
44 | }, | 44 | }, |
45 | }); | 45 | }); |
46 | 46 | ||
diff --git a/src/features/shareFranz/index.js b/src/features/shareFranz/index.js index 34475f674..9add0f65e 100644 --- a/src/features/shareFranz/index.js +++ b/src/features/shareFranz/index.js | |||
@@ -1,8 +1,6 @@ | |||
1 | import { reaction } from 'mobx'; | 1 | import { reaction } from 'mobx'; |
2 | import ms from 'ms'; | 2 | import ms from 'ms'; |
3 | import { state as ModalState } from './store'; | 3 | import { state as ModalState } from './store'; |
4 | import { state as delayAppState } from '../delayApp'; | ||
5 | import { planSelectionStore } from '../planSelection'; | ||
6 | 4 | ||
7 | export { default as Component } from './Component'; | 5 | export { default as Component } from './Component'; |
8 | 6 | ||
@@ -19,21 +17,14 @@ export default function initialize(stores) { | |||
19 | 17 | ||
20 | function showModal() { | 18 | function showModal() { |
21 | debug('Would have showed share window'); | 19 | debug('Would have showed share window'); |
22 | |||
23 | // state.isModalVisible = true; | ||
24 | } | 20 | } |
25 | 21 | ||
26 | reaction( | 22 | reaction( |
27 | () => stores.user.isLoggedIn, | 23 | () => stores.user.isLoggedIn, |
28 | () => { | 24 | () => { |
29 | setTimeout(() => { | 25 | setTimeout(() => { |
30 | if (stores.settings.stats.appStarts % 50 === 0 && !planSelectionStore.showPlanSelectionOverlay) { | 26 | if (stores.settings.stats.appStarts % 50 === 0) { |
31 | if (delayAppState.isDelayAppScreenVisible) { | 27 | showModal(); |
32 | debug('Delaying share modal by 5 minutes'); | ||
33 | setTimeout(() => showModal(), ms('5m')); | ||
34 | } else { | ||
35 | showModal(); | ||
36 | } | ||
37 | } | 28 | } |
38 | }, ms('2s')); | 29 | }, ms('2s')); |
39 | }, | 30 | }, |