You've already forked matrix-js-sdk
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:
@@ -403,7 +403,7 @@ RoomState.prototype._maySendEventOfType = function(eventType, userId, state) {
|
||||
*/
|
||||
RoomState.prototype.mayTriggerNotifOfType = function(notifLevelKey, userId) {
|
||||
const member = this.getMember(userId);
|
||||
if (!member || member.membership == 'leave') {
|
||||
if (!member) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user