Browse Source

Merge pull request #919 from mrfelton/fix/disable-channel-notifications

fix(notifications): disable channel notifications
renovate/lint-staged-8.x
JimmyMow 6 years ago
committed by GitHub
parent
commit
e5cdfb1b98
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      app/reducers/channels.js

10
app/reducers/channels.js

@ -1,7 +1,6 @@
import { createSelector } from 'reselect'
import { ipcRenderer } from 'electron'
import { btc } from 'lib/utils'
import { showNotification } from 'lib/utils/notifications'
import { requestSuggestedNodes } from 'lib/utils/api'
import db from 'store/db'
import { setError } from './error'
@ -301,15 +300,6 @@ export const channelGraphData = (event, data) => (dispatch, getState) => {
// this channel has to do with the user, lets fetch a new channel list for them
// TODO: full fetch is probably not necessary
dispatch(fetchChannels())
// Construct the notification
const otherParty =
info.data.identity_pubkey === advertising_node ? connecting_node : advertising_node
const notifBody = `No new friends, just new channels. Your channel with ${otherParty}`
const notifTitle = 'New channel detected'
// HTML 5 notification for channel updates involving our node
showNotification(notifTitle, notifBody)
}
}
}

Loading…
Cancel
Save