From 419681ad0d832808caec5252fb65aa154b0e4ae2 Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Tue, 20 Apr 2021 14:40:18 -0400
Subject: created SYSTEM_MSG

---
 src/components/notifications/Notification.tsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'src/components/notifications/Notification.tsx')

diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx
index d66ca45e..3cc1c7f1 100644
--- a/src/components/notifications/Notification.tsx
+++ b/src/components/notifications/Notification.tsx
@@ -57,8 +57,6 @@ const Notification: React.FC<NotificationProps> = (props) => {
 
   const [avatar, setAvatar] = useState<string | undefined>(undefined);
   const [momentURI, setMomentURI] = useState<string | undefined>(undefined);
-  const isSystemNotification =
-    username === 'Tagg' && notification_type === 'PROF_VIST';
 
   useEffect(() => {
     (async () => {
@@ -210,7 +208,7 @@ const Notification: React.FC<NotificationProps> = (props) => {
 
   const isOwnProfile = id === loggedInUser.userId;
   const navigateToProfile = async () => {
-    if (isSystemNotification) {
+    if (notification_type === 'SYSTEM_MSG') {
       return;
     }
     if (!userXInStore(state, screenType, id)) {
@@ -236,7 +234,7 @@ const Notification: React.FC<NotificationProps> = (props) => {
           }
         />
       </TouchableWithoutFeedback>
-      {isSystemNotification ? (
+      {notification_type === 'SYSTEM_MSG' ? (
         // Only verbage
         <View style={styles.contentContainer}>
           <Text style={styles.actorName}>{verbage}</Text>
-- 
cgit v1.2.3-70-g09d2

