Don't count muted convos in badge count by default

This commit is contained in:
Josh Perez 2020-09-14 18:16:57 -04:00 committed by Josh Perez
parent 64c3a6eae0
commit 22ba54ce5c
14 changed files with 115 additions and 28 deletions

View file

@ -3107,8 +3107,14 @@
});
},
isMuted() {
return (
this.get('muteExpiresAt') && Date.now() < this.get('muteExpiresAt')
);
},
async notify(message, reaction) {
if (this.get('muteExpiresAt') && Date.now() < this.get('muteExpiresAt')) {
if (this.isMuted()) {
return;
}