mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
Fix reaction notifications (#98)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -163,6 +163,9 @@ async function notifyReaction (
|
||||
const messageAccount = await findAccount(ctx, message.creator)
|
||||
if (messageAccount == null) return result
|
||||
|
||||
const spaceMembers = await ctx.db.getCardSpaceMembers(cardId)
|
||||
if (!spaceMembers.includes(messageAccount)) return []
|
||||
|
||||
const reactionAccount = await findAccount(ctx, socialId)
|
||||
if (reactionAccount === messageAccount) return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user