Fix phantom notifications on mobile
This commit is contained in:
parent
c7eec167cf
commit
4be4288ef0
1 changed files with 3 additions and 12 deletions
|
|
@ -124,11 +124,8 @@ export const notifications = call(() => {
|
||||||
for (const [goalId, [comment]] of commentsByGoalId.entries()) {
|
for (const [goalId, [comment]] of commentsByGoalId.entries()) {
|
||||||
const goalItemPath = makeGoalPath(url, goalId)
|
const goalItemPath = makeGoalPath(url, goalId)
|
||||||
|
|
||||||
if (hasNotification(spacePathMobile, comment)) {
|
|
||||||
paths.add(spacePathMobile)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasNotification(goalPath, comment)) {
|
if (hasNotification(goalPath, comment)) {
|
||||||
|
paths.add(spacePathMobile)
|
||||||
paths.add(goalPath)
|
paths.add(goalPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -145,11 +142,8 @@ export const notifications = call(() => {
|
||||||
for (const [threadId, [comment]] of commentsByThreadId.entries()) {
|
for (const [threadId, [comment]] of commentsByThreadId.entries()) {
|
||||||
const threadItemPath = makeThreadPath(url, threadId)
|
const threadItemPath = makeThreadPath(url, threadId)
|
||||||
|
|
||||||
if (hasNotification(spacePathMobile, comment)) {
|
|
||||||
paths.add(spacePathMobile)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasNotification(threadPath, comment)) {
|
if (hasNotification(threadPath, comment)) {
|
||||||
|
paths.add(spacePathMobile)
|
||||||
paths.add(threadPath)
|
paths.add(threadPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -166,11 +160,8 @@ export const notifications = call(() => {
|
||||||
for (const [eventId, [comment]] of commentsByEventId.entries()) {
|
for (const [eventId, [comment]] of commentsByEventId.entries()) {
|
||||||
const calendarItemPath = makeCalendarPath(url, eventId)
|
const calendarItemPath = makeCalendarPath(url, eventId)
|
||||||
|
|
||||||
if (hasNotification(spacePathMobile, comment)) {
|
|
||||||
paths.add(spacePathMobile)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasNotification(calendarPath, comment)) {
|
if (hasNotification(calendarPath, comment)) {
|
||||||
|
paths.add(spacePathMobile)
|
||||||
paths.add(calendarPath)
|
paths.add(calendarPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue