MCPcopy Create free account
hub / github.com/CommE2E/comm / rawEntryInfoWithinCalendarQuery

Function rawEntryInfoWithinCalendarQuery

lib/shared/entry-utils.js:84–98  ·  view source on GitHub ↗
(
  rawEntryInfo: RawEntryInfo,
  calendarQuery: CalendarQuery,
)

Source from the content-addressed store, hash-verified

82}
83
84function 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
100function filterRawEntryInfosByCalendarQuery(
101 rawEntryInfos: { +[id: string]: RawEntryInfo },

Calls 3

filteredThreadIDsFunction · 0.90
hasMethod · 0.65

Tested by

no test coverage detected