Mute conversations

This commit is contained in:
Josh Perez 2020-08-27 15:45:08 -04:00 committed by Josh Perez
parent de7a69dee9
commit 84e52c948b
12 changed files with 185 additions and 3 deletions

View file

@ -499,6 +499,7 @@
? undefined
: (this.get('members') || []).length,
messageRequestsEnabled,
muteExpiresAt: this.get('muteExpiresAt'),
name: this.get('name'),
phoneNumber: this.getNumber(),
profileName: this.getProfileName(),
@ -2844,6 +2845,10 @@
},
async notify(message, reaction) {
if (this.get('muteExpiresAt') && Date.now() < this.get('muteExpiresAt')) {
return;
}
if (!message.isIncoming() && !reaction) {
return;
}