Refactoring

This commit is contained in:
syuilo 2019-09-09 22:18:32 +09:00
parent c033464b92
commit a36e5b4543

View File

@ -195,10 +195,7 @@ export default define(meta, async (ps, user) => {
const mute = await Mutings.find({
muterId: recipientUser.id,
});
const mutedUserIds = mute.map(m => m.muteeId.toString());
if (mutedUserIds.indexOf(user.id) != -1) {
return;
}
if (mute.map(m => m.muteeId).includes(user.id)) return;
//#endregion
publishMainStream(recipientUser.id, 'unreadMessagingMessage', messageObj);