mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 06:23:08 +02:00
Refactoring
This commit is contained in:
parent
c033464b92
commit
a36e5b4543
1 changed files with 1 additions and 4 deletions
|
@ -195,10 +195,7 @@ export default define(meta, async (ps, user) => {
|
||||||
const mute = await Mutings.find({
|
const mute = await Mutings.find({
|
||||||
muterId: recipientUser.id,
|
muterId: recipientUser.id,
|
||||||
});
|
});
|
||||||
const mutedUserIds = mute.map(m => m.muteeId.toString());
|
if (mute.map(m => m.muteeId).includes(user.id)) return;
|
||||||
if (mutedUserIds.indexOf(user.id) != -1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
publishMainStream(recipientUser.id, 'unreadMessagingMessage', messageObj);
|
publishMainStream(recipientUser.id, 'unreadMessagingMessage', messageObj);
|
||||||
|
|
Loading…
Reference in a new issue