Don't count muted convos in badge count by default
This commit is contained in:
parent
64c3a6eae0
commit
22ba54ce5c
14 changed files with 115 additions and 28 deletions
23
preload.js
23
preload.js
|
@ -163,6 +163,29 @@ try {
|
|||
installSetter('notification-draw-attention', 'setNotificationDrawAttention');
|
||||
installGetter('audio-notification', 'getAudioNotification');
|
||||
installSetter('audio-notification', 'setAudioNotification');
|
||||
installGetter(
|
||||
'badge-count-muted-conversations',
|
||||
'getCountMutedConversations'
|
||||
);
|
||||
installSetter(
|
||||
'badge-count-muted-conversations',
|
||||
'setCountMutedConversations'
|
||||
);
|
||||
|
||||
window.getCountMutedConversations = () =>
|
||||
new Promise((resolve, reject) => {
|
||||
ipc.once(
|
||||
'get-success-badge-count-muted-conversations',
|
||||
(_event, error, value) => {
|
||||
if (error) {
|
||||
return reject(new Error(error));
|
||||
}
|
||||
|
||||
return resolve(value);
|
||||
}
|
||||
);
|
||||
ipc.send('get-badge-count-muted-conversations');
|
||||
});
|
||||
|
||||
installGetter('spell-check', 'getSpellCheck');
|
||||
installSetter('spell-check', 'setSpellCheck');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue