Skip to content

Commit

Permalink
make exception for apr-2024-mchx-collab so that only updated clients …
Browse files Browse the repository at this point in the history
…see the announcement
  • Loading branch information
kaitoo1 committed Apr 5, 2024
1 parent b70f067 commit 04ac705
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/mobile/src/components/Notification/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export function Notification({ notificationRef, queryRef }: NotificationInnerPro
... on GalleryAnnouncementNotification {
__typename
platform
internalId
...GalleryAnnouncementFragment
}
... on SomeoneYouFollowOnFarcasterJoinedNotification {
Expand Down Expand Up @@ -198,6 +199,10 @@ export function Notification({ notificationRef, queryRef }: NotificationInnerPro
} else if (notification.__typename === 'SomeoneAdmiredYourCommentNotification') {
return <SomeoneAdmiredYourComment queryRef={query} notificationRef={notification} />;
} else if (notification.__typename === 'GalleryAnnouncementNotification') {
// make exception for apr-2024-mchx-collab so that only updated clients see the announcement
if (notification.internalId === 'apr-2024-mchx-collab') {
return <GalleryAnnouncement notificationRef={notification} queryRef={query} />;
}
return notification.platform === 'Web' ? null : (
<GalleryAnnouncement notificationRef={notification} queryRef={query} />
);
Expand Down

0 comments on commit 04ac705

Please sign in to comment.