This commit is contained in:
Nouman Tahir 2023-11-14 18:18:56 +05:00
parent 946b9c1867
commit b7238dcd6e
7 changed files with 18 additions and 15 deletions

View File

@ -25,7 +25,6 @@ export default async ({ text, selection, setTextAndSelection, items }: Args) =>
const imagePrefix = '!';
const placeholderPrefix = 'Uploading... ';
let newText = text;

View File

@ -385,9 +385,9 @@ export const UploadsGalleryModal = forwardRef(
map.forEach((value, index) => {
console.log(index);
const item:MediaItem = mediaUploadsQuery.data[index];
const item: MediaItem = mediaUploadsQuery.data[index];
data.push({
url: mode === Modes.MODE_VIDEO ? (item.speakData?._id || '') : item.url,
url: mode === Modes.MODE_VIDEO ? item.speakData?._id || '' : item.url,
text: mode === Modes.MODE_VIDEO ? `3speak` : '',
status: MediaInsertStatus.READY,
mode,

View File

@ -17,7 +17,7 @@ const queryClientProviderProps = initQueryClient();
if (__DEV__) {
import('react-query-native-devtools').then(({ addPlugin }) => {
addPlugin({ queryClient:queryClientProviderProps.client });
addPlugin({ queryClient: queryClientProviderProps.client });
});
}

View File

@ -46,7 +46,7 @@ const MainStackNavigator = () => {
// TODO: remove initialRoute before PR
return (
<MainStack.Navigator
initialRouteName={ROUTES.SCREENS.EDITOR}
// initialRouteName={ROUTES.SCREENS.EDITOR}
screenOptions={{ headerShown: false, animation: 'slide_from_right' }}
>
<MainStack.Screen name={ROUTES.DRAWER.MAIN} component={DrawerNavigator} />

View File

@ -14,7 +14,7 @@ export interface MediaItem {
thumbUrl: string;
created: string;
timestamp: number;
speakData?:ThreeSpeakVideo
speakData?: ThreeSpeakVideo;
}
export interface Snippet {

View File

@ -2,12 +2,12 @@ import { MediaItem } from '../ecency/ecency.types';
import { BASE_URL_SPEAK_WATCH } from './constants';
export const convertVideoUpload = (data) => {
return {
_id:data._id,
url:`${BASE_URL_SPEAK_WATCH}?v=${data.owner}/${data.permlink}`,
thumbUrl:data.thumbUrl,
created:data.created,
timestamp:0,
speakData:data
} as MediaItem
}
return {
_id: data._id,
url: `${BASE_URL_SPEAK_WATCH}?v=${data.owner}/${data.permlink}`,
thumbUrl: data.thumbUrl,
created: data.created,
timestamp: 0,
speakData: data,
} as MediaItem;
};

View File

@ -672,6 +672,7 @@ class EditorContainer extends Component<EditorContainerProps, any> {
)
.then((response) => {
console.log(response);
// track user activity for points
userActivityMutation.mutate({
pointsTy: PointActivityIds.POST,
@ -694,6 +695,9 @@ class EditorContainer extends Component<EditorContainerProps, any> {
});
}
//TODO: mark unpublished video as published on 3speak if that is the case
// post publish updates
dispatch(deleteDraftCacheEntry(DEFAULT_USER_DRAFT_ID + currentAccount.name));