From 04ac705414640f43b1caf5d904275172d2af72fb Mon Sep 17 00:00:00 2001 From: kaito <80802871+kaitoo1@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:51:28 +0900 Subject: [PATCH] make exception for apr-2024-mchx-collab so that only updated clients see the announcement --- apps/mobile/src/components/Notification/Notification.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/mobile/src/components/Notification/Notification.tsx b/apps/mobile/src/components/Notification/Notification.tsx index be9eea6c48..fd0e9149f7 100644 --- a/apps/mobile/src/components/Notification/Notification.tsx +++ b/apps/mobile/src/components/Notification/Notification.tsx @@ -145,6 +145,7 @@ export function Notification({ notificationRef, queryRef }: NotificationInnerPro ... on GalleryAnnouncementNotification { __typename platform + internalId ...GalleryAnnouncementFragment } ... on SomeoneYouFollowOnFarcasterJoinedNotification { @@ -198,6 +199,10 @@ export function Notification({ notificationRef, queryRef }: NotificationInnerPro } else if (notification.__typename === 'SomeoneAdmiredYourCommentNotification') { return ; } 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 ; + } return notification.platform === 'Web' ? null : ( );