Fix on join notification bug

This commit is contained in:
Natsumi
2021-01-01 08:43:31 +13:00
parent eb0ddf864d
commit 8f97714a53

View File

@@ -705,7 +705,8 @@ speechSynthesis.getVoices();
notys.push(feed);
}
}
} else if ((notificationJoinLeaveFilter === "Everyone") ||
}
if ((notificationJoinLeaveFilter === "Everyone") ||
((notificationJoinLeaveFilter === "Friends") && (feed.isFriend)) ||
((notificationJoinLeaveFilter === "VIP") && (feed.isFavorite))) {
if (feed.type === 'OnPlayerJoined' ||
@@ -716,7 +717,8 @@ speechSynthesis.getVoices();
notys.push(feed);
}
}
} else if (feed.type === 'invite' ||
}
if (feed.type === 'invite' ||
feed.type === 'requestInvite' ||
feed.type === 'friendRequest') {
if (!map[feed.senderUsername] ||