feat: distinguish between mention and reply notifications
This commit is contained in:
parent
629ad3f7cd
commit
5107ce4b77
5 changed files with 56 additions and 50 deletions
|
|
@ -39,7 +39,12 @@ const NotificationList = forwardRef((_, ref) => {
|
|||
const filterKinds = useMemo(() => {
|
||||
switch (notificationType) {
|
||||
case 'mentions':
|
||||
return [kinds.ShortTextNote, ExtendedKind.COMMENT, ExtendedKind.VOICE_COMMENT]
|
||||
return [
|
||||
kinds.ShortTextNote,
|
||||
ExtendedKind.COMMENT,
|
||||
ExtendedKind.VOICE_COMMENT,
|
||||
ExtendedKind.POLL
|
||||
]
|
||||
case 'reactions':
|
||||
return [kinds.Reaction, kinds.Repost, ExtendedKind.POLL_RESPONSE]
|
||||
case 'zaps':
|
||||
|
|
@ -52,7 +57,8 @@ const NotificationList = forwardRef((_, ref) => {
|
|||
kinds.Zap,
|
||||
ExtendedKind.COMMENT,
|
||||
ExtendedKind.POLL_RESPONSE,
|
||||
ExtendedKind.VOICE_COMMENT
|
||||
ExtendedKind.VOICE_COMMENT,
|
||||
ExtendedKind.POLL
|
||||
]
|
||||
}
|
||||
}, [notificationType])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue