Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(notifications): disable channel notifications
Browse files Browse the repository at this point in the history
Desktop notifications every time a channel opens or closes is noisy and
not really necessary. Most users will use autopilot for channel
management and should not care too much when it opens or closes a
channel.

Fix #879
  • Loading branch information
mrfelton committed Nov 27, 2018
1 parent 7487fae commit 9af8a89
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/reducers/channels.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 9af8a89

Please sign in to comment.