Remove notification logging from info (#2245)
This commit is contained in:
parent
840c640fdf
commit
f95fce2c85
|
@ -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});
|
||||||
|
|
Loading…
Reference in a new issue