Skip to content

Commit

Permalink
Remove pushy
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaskay committed Aug 4, 2023
1 parent a889f71 commit 6bdb900
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 530 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"mysterium-vpn-js": "26.0.0",
"node-machine-id": "^1.1.12",
"open": "^7.0.0",
"pushy-electron": "^1.0.8",
"qrcode.react": "^2.0.0",
"react": "^18.2.0",
"react-autosuggest": "^10.1.0",
Expand Down Expand Up @@ -110,7 +109,6 @@
},
"analyticsUrl": "https://analytics.mysterium.network",
"intercomAppId": "sjkeehf4",
"pushyAppId": "5f23dc54d4786d7760003a71",
"sentryDsn": "https://[email protected]/5222592",
"electronWebpack": {
"renderer": {
Expand Down
2 changes: 0 additions & 2 deletions src/app/connection/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { newUIProposal, UIProposal } from "../proposals/uiProposal"
import { MainIpcListenChannels } from "../../shared/ipc"
import { log, logErrorMessage } from "../../shared/log/log"
import { eventBus, tequilapi } from "../tequilapi"
import { subscribePush } from "../push/push"
import { parseError } from "../../shared/errors/parseError"
import { analytics } from "../analytics/analytics"
import { EventName } from "../analytics/event"
Expand Down Expand Up @@ -235,7 +234,6 @@ export class ConnectionStore {
try {
const location = await tequilapi.location()
this.setOriginalLocation(location)
subscribePush(location.country)
} catch (err) {
const msg = parseError(err)
logErrorMessage("Failed to lookup original location", msg)
Expand Down
7 changes: 0 additions & 7 deletions src/app/identity/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import BigNumber from "bignumber.js"
import { RootStore, Step } from "../store"
import { eventBus, tequilapi } from "../tequilapi"
import { log } from "../../shared/log/log"
import { PushTopic } from "../../shared/push/topics"
import { subscribePush, unsubscribePush } from "../push/push"
import { ExportIdentityOpts, ImportIdentityOpts, mysteriumNodeIPC } from "../../shared/node/mysteriumNodeIPC"
import { analytics } from "../analytics/analytics"
import { EventName } from "../analytics/event"
Expand Down Expand Up @@ -74,11 +72,6 @@ export class IdentityStore {
reaction(
() => Number(this.identity?.balanceTokens.human ?? 0),
(balance) => {
if (balance != null && balance < 0.5) {
subscribePush(PushTopic.LessThanHalfMyst)
} else {
unsubscribePush(PushTopic.LessThanHalfMyst)
}
reportBalanceUpdate(balance)
},
)
Expand Down
37 changes: 0 additions & 37 deletions src/app/push/push.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { isDevelopment, isProduction } from "../utils/env"
import { MainIpcListenChannels, WebIpcListenChannels } from "../shared/ipc"
import { handleProcessExit } from "../utils/handleProcessExit"

import { initialize as initializePushNotifications } from "./push/push"
import { createTray, refreshTrayIcon } from "./tray"
import { supervisor } from "./node/supervisor"
import { createMenu } from "./menu"
Expand Down Expand Up @@ -121,9 +120,6 @@ const createMainWindow = async (): Promise<BrowserWindow> => {
window.focus()
})
})
window.webContents.on("did-finish-load", () => {
initializePushNotifications()
})

return window
}
Expand Down
61 changes: 0 additions & 61 deletions src/main/push/push.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/shared/ipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export enum MainIpcListenChannels {
ExportIdentity = "export-identity",
ImportIdentityChooseFile = "import-identity-choose-file",
ImportIdentity = "import-identity",
PushSubscribe = "push-subscribe-country",
PushUnsubscribe = "push-unsubscribe",
SupervisorConnect = "supervisor-connect",
SupervisorInstall = "supervisor-install",
SupervisorUpgrade = "supervisor-upgrade",
Expand Down
Loading

0 comments on commit 6bdb900

Please sign in to comment.