diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/notifications/Notification.tsx | 13 | ||||
-rw-r--r-- | src/services/MomentService.ts | 2 |
2 files changed, 3 insertions, 12 deletions
diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx index a3d1080b..e0ae231e 100644 --- a/src/components/notifications/Notification.tsx +++ b/src/components/notifications/Notification.tsx @@ -2,7 +2,7 @@ import {useNavigation} from '@react-navigation/native'; import React, {useEffect, useState} from 'react'; import {Alert, Image, StyleSheet, Text, View} from 'react-native'; import {TouchableWithoutFeedback} from 'react-native-gesture-handler'; -import {useDispatch, useSelector, useStore} from 'react-redux'; +import {useDispatch, useStore} from 'react-redux'; import {ERROR_DELETED_OBJECT} from '../../constants/strings'; import { loadImageFromURL, @@ -13,12 +13,9 @@ import { acceptFriendRequest, declineFriendRequest, loadUserNotifications, - loadUserX, - loadUserXSpecifics, updateReplyPosted, updateUserXFriends, } from '../../store/actions'; -import {NO_MOMENTS} from '../../store/initialStates'; import {RootState} from '../../store/rootReducer'; import {MomentType, NotificationType, ScreenType} from '../../types'; import { @@ -68,13 +65,7 @@ const Notification: React.FC<NotificationProps> = (props) => { useEffect(() => { if (onTapLoadProfile) { - dispatch( - loadUserXSpecifics( - {userId: id, username: username}, - ['Profile', 'Moments'], - screenType, - ), - ); + fetchUserX(dispatch, {userId: id, username: username}, screenType); } return () => { setOnTapLoadProfile(false); diff --git a/src/services/MomentService.ts b/src/services/MomentService.ts index 0110a0d6..2354d18e 100644 --- a/src/services/MomentService.ts +++ b/src/services/MomentService.ts @@ -100,7 +100,7 @@ export const loadMomentThumbnail = async (momentId: string) => { try { const token = await AsyncStorage.getItem('token'); const response = await RNFetchBlob.config({ - fileCache: true, + fileCache: false, appendExt: 'jpg', }).fetch('GET', MOMENT_THUMBNAIL_ENDPOINT + `${momentId}/`, { Authorization: 'Token ' + token, |