mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-29 16:31:04 +00:00
Remove notifications about interactions without a parent
This commit is contained in:
parent
d973b1fc7a
commit
67e4bbe5aa
@ -1,5 +1,5 @@
|
||||
import {max, sortBy} from "ramda"
|
||||
import {Tags, findReplyId, findReplyAndRootIds} from "src/util/nostr"
|
||||
import {Tags, reactionKinds, findReplyId, findReplyAndRootIds} from "src/util/nostr"
|
||||
import {formatTimestampAsLocalISODate, tryJson} from "src/util/misc"
|
||||
import {derived} from "src/engine2/util/store"
|
||||
import {events, notificationsLastChecked} from "src/engine2/state"
|
||||
@ -51,7 +51,7 @@ export const groupNotifications = $notifications => {
|
||||
const eventId = findReplyId(ix)
|
||||
const event = $userEventsById[eventId]
|
||||
|
||||
if (eventId && !event) {
|
||||
if ((eventId || reactionKinds.includes(ix.kind)) && !event) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user