Remove notification logging from info (#2245)

This commit is contained in:
Devin Binnie 2022-08-29 09:19:58 -04:00 committed by GitHub
parent 840c640fdf
commit f95fce2c85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ export function displayMention(title: string, body: string, channel: {id: string
// On Windows, manually dismiss notifications from the same channel and only show the latest one // On Windows, manually dismiss notifications from the same channel and only show the latest one
if (process.platform === 'win32') { if (process.platform === 'win32') {
if (currentNotifications.has(mentionKey)) { if (currentNotifications.has(mentionKey)) {
log.info(`close ${mentionKey}`); log.debug(`close ${mentionKey}`);
currentNotifications.get(mentionKey).close(); currentNotifications.get(mentionKey).close();
currentNotifications.delete(mentionKey); currentNotifications.delete(mentionKey);
} }
@ -64,7 +64,7 @@ export function displayMention(title: string, body: string, channel: {id: string
}); });
mention.on('click', () => { mention.on('click', () => {
log.info('notification click', serverName, mention); log.debug('notification click', serverName, mention);
if (serverName) { if (serverName) {
WindowManager.switchTab(serverName, TAB_MESSAGING); WindowManager.switchTab(serverName, TAB_MESSAGING);
webcontents.send('notification-clicked', {channel, teamId, url}); webcontents.send('notification-clicked', {channel, teamId, url});