1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Remove leave check

1. It's wrong because it doesn't consider the ban state
2. This should be caught by whether they have permission to send
   the event in the first place rather than worrying about whether
   it has notification permission or not
This commit is contained in:
David Baker
2017-11-02 13:26:39 +00:00
parent 978db89deb
commit d255348762

View File

@@ -403,7 +403,7 @@ RoomState.prototype._maySendEventOfType = function(eventType, userId, state) {
*/ */
RoomState.prototype.mayTriggerNotifOfType = function(notifLevelKey, userId) { RoomState.prototype.mayTriggerNotifOfType = function(notifLevelKey, userId) {
const member = this.getMember(userId); const member = this.getMember(userId);
if (!member || member.membership == 'leave') { if (!member) {
return false; return false;
} }