this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Group together notifications more aggressively

+3 -2
+3 -2
src/state/models/notifications-view.ts
··· 14 14 15 15 const UNGROUPABLE_REASONS = ['assertion'] 16 16 const PAGE_SIZE = 30 17 - const MS_60MIN = 1e3 * 60 * 60 17 + const MS_1HR = 1e3 * 60 * 60 18 + const MS_2DAY = MS_1HR * 48 18 19 19 20 let _idCounter = 0 20 21 ··· 447 448 for (const item2 of items2) { 448 449 const ts2 = +new Date(item2.indexedAt) 449 450 if ( 450 - Math.abs(ts2 - ts) < MS_60MIN && 451 + Math.abs(ts2 - ts) < MS_2DAY && 451 452 item.reason === item2.reason && 452 453 item.reasonSubject === item2.reasonSubject && 453 454 item.author.did !== item2.author.did