From 9af8a899928de954f15d21a910c66aec107ac123 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Tue, 27 Nov 2018 11:09:27 +0100 Subject: [PATCH] fix(notifications): disable channel notifications 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 --- app/reducers/channels.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/reducers/channels.js b/app/reducers/channels.js index 4216de7f..f7c954b7 100644 --- a/app/reducers/channels.js +++ b/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) } } }