( rawEntryInfo: RawEntryInfo, calendarQuery: CalendarQuery, )
| 82 | } |
| 83 | |
| 84 | function rawEntryInfoWithinCalendarQuery( |
| 85 | rawEntryInfo: RawEntryInfo, |
| 86 | calendarQuery: CalendarQuery, |
| 87 | ): boolean { |
| 88 | if (!rawEntryInfoWithinActiveRange(rawEntryInfo, calendarQuery)) { |
| 89 | return false; |
| 90 | } |
| 91 | |
| 92 | const filterToThreadIDs = filteredThreadIDs(calendarQuery.filters); |
| 93 | if (filterToThreadIDs && !filterToThreadIDs.has(rawEntryInfo.threadID)) { |
| 94 | return false; |
| 95 | } |
| 96 | |
| 97 | return true; |
| 98 | } |
| 99 | |
| 100 | function filterRawEntryInfosByCalendarQuery( |
| 101 | rawEntryInfos: { +[id: string]: RawEntryInfo }, |
no test coverage detected