MCPcopy Index your code
hub / github.com/gitify-app/gitify / isStateFilteredOut

Function isStateFilteredOut

src/renderer/utils/notifications/filters/filter.ts:188–194  ·  view source on GitHub ↗
(
  state: GitifyNotificationState | undefined,
)

Source from the content-addressed store, hash-verified

186 * @returns `true` if the state is currently filtered out.
187 */
188export function isStateFilteredOut(
189 state: GitifyNotificationState | undefined,
190): boolean {
191 const notification = { subject: { state: state } } as GitifyNotification;
192
193 return !passesStateFilter(notification);
194}
195
196/**
197 * Return true if a notification with the given user would be filtered out

Callers 2

enrichMethod · 0.90
enrichMethod · 0.90

Calls 1

passesStateFilterFunction · 0.85

Tested by

no test coverage detected