feat: limit displayed length of reaction content

This commit is contained in:
codytseng
2025-12-04 09:18:43 +08:00
parent 33fa1ec441
commit 881dedb6b6

View File

@@ -47,10 +47,13 @@ export function ReactionNotification({
)
}
}
if (notification.content.length > 4) {
return null
}
return notification.content
}, [notification])
if (!event || !eventId) {
if (!event || !eventId || !reaction) {
return null
}