MCPcopy Create free account
hub / github.com/dailydotdev/apps / isNotificationVisible

Function isNotificationVisible

packages/shared/src/graphql/notifications.ts:118–122  ·  view source on GitHub ↗
(
  { type }: Pick<Notification, 'type'>,
  isSubscribed: boolean,
)

Source from the content-addressed store, hash-verified

116
117/** Push subscribers already got the squad subscription, so it is hidden. */
118export const isNotificationVisible = (
119 { type }: Pick<Notification, 'type'>,
120 isSubscribed: boolean,
121): boolean =>
122 !(isSubscribed && type === NotificationType.SquadSubscribeNotification);
123
124export const latestNotificationsQueryKey = ['notifications', 'latest'];
125

Callers 2

NotificationsWidgetFunction · 0.90
NotificationsFeedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected