mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Merge pull request #67 from project-error/fix/warnings-and-call-timer
Fix warnings + Improve CallTimer
This commit is contained in:
15 files changed
+103
-72
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import React, {useEffect} from 'react';
|
||||||
import { Box, Button } from '@material-ui/core';
|
import { Box, Button } from '@material-ui/core';
|
||||||
import useStyles from './grid.styles';
|
import useStyles from './grid.styles';
|
||||||
import { usePhotos } from '../../hooks/usePhotos';
|
import { usePhotos } from '../../hooks/usePhotos';
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { useRecoilValue } from 'recoil';
|
|||||||
import { contactsState } from './state';
|
import { contactsState } from './state';
|
||||||
|
|
||||||
import { ContactProps } from '../../../common/typings/contact';
|
import { ContactProps } from '../../../common/typings/contact';
|
||||||
import { useCall } from '../../../modal/hooks/useCall';
|
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
interface IUseContacts {
|
interface IUseContacts {
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
import React, { ChangeEvent, useState } from 'react';
|
import React, { ChangeEvent, useState } from 'react';
|
||||||
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
||||||
import { faHome } from '@fortawesome/free-solid-svg-icons';
|
|
||||||
import AddCircleIcon from '@material-ui/icons/AddCircle';
|
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { makeStyles, Theme } from '@material-ui/core/styles';
|
import { makeStyles, Theme } from '@material-ui/core/styles';
|
||||||
import PhoneCallbackIcon from '@material-ui/icons/PhoneCallback';
|
|
||||||
import PhoneIcon from '@material-ui/icons/Phone';
|
import PhoneIcon from '@material-ui/icons/Phone';
|
||||||
import { History } from '@material-ui/icons';
|
import { History } from '@material-ui/icons';
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,10 @@ import { useApp } from '../../../os/apps/hooks/useApps';
|
|||||||
import AlertBar from './AlertBar';
|
import AlertBar from './AlertBar';
|
||||||
import MessageGroupModal from './modal/MessageGroupModal';
|
import MessageGroupModal from './modal/MessageGroupModal';
|
||||||
import MessagesList from './list/MessagesList';
|
import MessagesList from './list/MessagesList';
|
||||||
import { Route, Switch } from 'react-router-dom';
|
import { Route, Switch, useHistory } from 'react-router-dom';
|
||||||
import { MessageModal } from './modal/MessageModal';
|
import { MessageModal } from './modal/MessageModal';
|
||||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||||
|
import NewMessageGroupButton from './buttons/NewMessageGroupButton';
|
||||||
|
|
||||||
InjectDebugData([
|
InjectDebugData([
|
||||||
{
|
{
|
||||||
@@ -47,6 +48,7 @@ InjectDebugData([
|
|||||||
|
|
||||||
export const MessagesApp = () => {
|
export const MessagesApp = () => {
|
||||||
const messages = useApp('MESSAGES');
|
const messages = useApp('MESSAGES');
|
||||||
|
const history = useHistory();
|
||||||
return (
|
return (
|
||||||
<AppWrapper id='messages-app'>
|
<AppWrapper id='messages-app'>
|
||||||
<AppTitle app={messages} />
|
<AppTitle app={messages} />
|
||||||
@@ -59,7 +61,17 @@ export const MessagesApp = () => {
|
|||||||
/>
|
/>
|
||||||
</Switch>
|
</Switch>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path='/messages' component={MessagesList} />
|
<Route
|
||||||
|
path='/messages'
|
||||||
|
render={() => (
|
||||||
|
<>
|
||||||
|
<MessagesList />
|
||||||
|
<NewMessageGroupButton
|
||||||
|
onClick={() => history.push('/messages/new')}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
<Route exact path='/messages/new' component={MessageGroupModal} />
|
<Route exact path='/messages/new' component={MessageGroupModal} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</AppContent>
|
</AppContent>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import MessageSearch from './MessageSearch';
|
|||||||
import MessageGroupItem from './MessageGroupItem';
|
import MessageGroupItem from './MessageGroupItem';
|
||||||
import useStyles from './list.styles';
|
import useStyles from './list.styles';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import NewMessageGroupButton from '../buttons/NewMessageGroupButton';
|
|
||||||
|
|
||||||
const MessagesList = (): any => {
|
const MessagesList = (): any => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
@@ -61,7 +60,6 @@ const MessagesList = (): any => {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
<NewMessageGroupButton onClick={() => history.push('/messages/new')} />
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, { useState } from 'react';
|
import React from 'react';
|
||||||
import { Button, Fab } from '@material-ui/core';
|
import { Fab } from '@material-ui/core';
|
||||||
import { AppWrapper } from '../../ui/components/AppWrapper';
|
import { AppWrapper } from '../../ui/components/AppWrapper';
|
||||||
import { AppTitle } from '../../ui/components/AppTitle';
|
|
||||||
import { AppContent } from '../../ui/components/AppContent';
|
import { AppContent } from '../../ui/components/AppContent';
|
||||||
import { useCall } from '../hooks/useCall';
|
import { useCall } from '../hooks/useCall';
|
||||||
import CallIcon from '@material-ui/icons/Call';
|
import CallIcon from '@material-ui/icons/Call';
|
||||||
|
|||||||
@@ -1,48 +1,45 @@
|
|||||||
import React, { useState, useCallback, useEffect } from 'react';
|
import React, { useEffect, useRef } from 'react';
|
||||||
import { useDuration } from '../hooks/useDuration';
|
import { useDuration } from '../hooks/useDuration';
|
||||||
|
|
||||||
|
|
||||||
|
const runTimer = (updatedTime, setDuration) => {
|
||||||
|
let newTime = { ...updatedTime.current };
|
||||||
|
if (newTime.m >= 60) {
|
||||||
|
newTime = { ...newTime, h: newTime.h + 1, m: 0 };
|
||||||
|
}
|
||||||
|
if (newTime.s >= 60) {
|
||||||
|
newTime = { ...newTime, m: newTime.m + 1, s: 0 };
|
||||||
|
}
|
||||||
|
if (newTime.ms >= 100) {
|
||||||
|
newTime = { ...newTime, s: newTime.s + 1, ms: 0 };
|
||||||
|
}
|
||||||
|
|
||||||
|
newTime = { ...newTime, ms: newTime.ms + 1 };
|
||||||
|
updatedTime.current = newTime;
|
||||||
|
setDuration(newTime);
|
||||||
|
}
|
||||||
|
|
||||||
function CallTimer({ isAccepted }) {
|
function CallTimer({ isAccepted }) {
|
||||||
const { duration, setDuration } = useDuration();
|
const { duration, setDuration } = useDuration();
|
||||||
|
const updatedTime = useRef({ ms: 0, s: 0, m: 0, h: 0 });
|
||||||
|
const timer = useRef(null)
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let timer;
|
|
||||||
if (isAccepted) {
|
if (isAccepted) {
|
||||||
run();
|
runTimer(updatedTime, setDuration)
|
||||||
timer = setInterval(run, 10);
|
timer.current = setInterval(() => {
|
||||||
|
runTimer(updatedTime, setDuration)
|
||||||
|
}, 10);
|
||||||
} else {
|
} else {
|
||||||
clearInterval(timer);
|
clearInterval(timer.current);
|
||||||
|
timer.current = null;
|
||||||
}
|
}
|
||||||
}, []);
|
return () => clearInterval(timer.current)
|
||||||
|
}, [isAccepted, setDuration]);
|
||||||
let updatedMs = duration.ms,
|
|
||||||
updatedS = duration.s,
|
|
||||||
updatedM = duration.m,
|
|
||||||
updatedH = duration.h;
|
|
||||||
|
|
||||||
if (!duration) return null;
|
if (!duration) return null;
|
||||||
|
|
||||||
const run = () => {
|
|
||||||
if (updatedM === 60) {
|
|
||||||
updatedH++;
|
|
||||||
updatedM = 0;
|
|
||||||
}
|
|
||||||
if (updatedS === 60) {
|
|
||||||
updatedM++;
|
|
||||||
updatedS = 0;
|
|
||||||
}
|
|
||||||
if (updatedMs === 100) {
|
|
||||||
updatedS++;
|
|
||||||
updatedMs = 0;
|
|
||||||
}
|
|
||||||
updatedMs++;
|
|
||||||
return setDuration({
|
|
||||||
ms: updatedMs,
|
|
||||||
s: updatedS,
|
|
||||||
m: updatedM,
|
|
||||||
h: updatedH,
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useRecoilState } from 'recoil';
|
import { useRecoilState } from 'recoil';
|
||||||
import { CallProps, ICallDuration } from '../../common/typings/call';
|
import { CallProps } from '../../common/typings/call';
|
||||||
import { callerState } from './state';
|
import { callerState } from './state';
|
||||||
|
|
||||||
interface CallHook {
|
interface CallHook {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import React, {useEffect} from 'react';
|
||||||
import { useConfig } from '../../../config/hooks/useConfig';
|
import { useConfig } from '../../../config/hooks/useConfig';
|
||||||
import {
|
import {
|
||||||
blue,
|
blue,
|
||||||
@@ -38,6 +38,23 @@ import { ExampleApp } from '../../../apps/example/components/ExampleApp';
|
|||||||
import { SelloutApp } from '../../../apps/sellout/components/SelloutApp';
|
import { SelloutApp } from '../../../apps/sellout/components/SelloutApp';
|
||||||
import { NotesApp } from '../../../apps/notes/NotesApp';
|
import { NotesApp } from '../../../apps/notes/NotesApp';
|
||||||
import CameraApp from '../../../apps/camera/components/CameraApp';
|
import CameraApp from '../../../apps/camera/components/CameraApp';
|
||||||
|
import Nui from "../../nui-events/utils/Nui";
|
||||||
|
|
||||||
|
const AppWithStartup = ({ children, id }) => {
|
||||||
|
useEffect(() => {
|
||||||
|
Nui.send(`phone:app:${id}`);
|
||||||
|
}, []);
|
||||||
|
return children;
|
||||||
|
};
|
||||||
|
|
||||||
|
const AppRoute = ({ id, component: Component, ...rest }) => {
|
||||||
|
return (
|
||||||
|
<Route
|
||||||
|
{...rest}
|
||||||
|
render={() => <AppWithStartup id={id}><Component /></AppWithStartup>}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
const appsState = atom({
|
const appsState = atom({
|
||||||
key: 'apps',
|
key: 'apps',
|
||||||
@@ -50,7 +67,7 @@ const appsState = atom({
|
|||||||
backgroundColor: green[600],
|
backgroundColor: green[600],
|
||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/phone',
|
path: '/phone',
|
||||||
Route: () => <Route path='/phone' component={DialerApp} />,
|
Route: () => <AppRoute id="DIALER" path='/phone' component={DialerApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'MESSAGES',
|
id: 'MESSAGES',
|
||||||
@@ -60,7 +77,7 @@ const appsState = atom({
|
|||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/messages',
|
path: '/messages',
|
||||||
sharePath: '/messages/new',
|
sharePath: '/messages/new',
|
||||||
Route: () => <Route path='/messages' component={MessagesApp} />,
|
Route: () => <AppRoute id="MESSAGE" path='/messages' component={MessagesApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'CONTACTS',
|
id: 'CONTACTS',
|
||||||
@@ -69,7 +86,7 @@ const appsState = atom({
|
|||||||
backgroundColor: blue[500],
|
backgroundColor: blue[500],
|
||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/contacts',
|
path: '/contacts',
|
||||||
Route: () => <Route path='/contacts' component={ContactsApp} />,
|
Route: () => <AppRoute id="CONTACTS" path='/contacts' component={ContactsApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'CALCULATOR',
|
id: 'CALCULATOR',
|
||||||
@@ -78,7 +95,7 @@ const appsState = atom({
|
|||||||
backgroundColor: purple[500],
|
backgroundColor: purple[500],
|
||||||
color: grey[50],
|
color: grey[50],
|
||||||
path: '/calculator',
|
path: '/calculator',
|
||||||
Route: () => <Route path='/calculator' component={CalculatorApp} />,
|
Route: () => <AppRoute id="CALCULATOR" path='/calculator' component={CalculatorApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'SETTINGS',
|
id: 'SETTINGS',
|
||||||
@@ -87,7 +104,7 @@ const appsState = atom({
|
|||||||
backgroundColor: '#383838',
|
backgroundColor: '#383838',
|
||||||
color: grey[50],
|
color: grey[50],
|
||||||
path: '/settings',
|
path: '/settings',
|
||||||
Route: () => <Route path='/settings' component={SettingsApp} />,
|
Route: () => <AppRoute id="SETTINGS" path='/settings' component={SettingsApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'BANK',
|
id: 'BANK',
|
||||||
@@ -96,7 +113,7 @@ const appsState = atom({
|
|||||||
backgroundColor: blue[900],
|
backgroundColor: blue[900],
|
||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/bank',
|
path: '/bank',
|
||||||
Route: () => <Route path='/bank' component={BankApp} />,
|
Route: () => <AppRoute id="BANK" path='/bank' component={BankApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'TWITTER',
|
id: 'TWITTER',
|
||||||
@@ -105,7 +122,7 @@ const appsState = atom({
|
|||||||
backgroundColor: blue[600],
|
backgroundColor: blue[600],
|
||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/twitter',
|
path: '/twitter',
|
||||||
Route: () => <Route path='/twitter' component={TwitterApp} />,
|
Route: () => <AppRoute id="TWITTER" path='/twitter' component={TwitterApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'SELLOUT',
|
id: 'SELLOUT',
|
||||||
@@ -114,7 +131,7 @@ const appsState = atom({
|
|||||||
backgroundColor: red[500],
|
backgroundColor: red[500],
|
||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/sellout',
|
path: '/sellout',
|
||||||
Route: () => <Route path='/sellout' component={SelloutApp} />,
|
Route: () => <AppRoute id="SELLOUT" path='/sellout' component={SelloutApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'NOTES',
|
id: 'NOTES',
|
||||||
@@ -123,7 +140,7 @@ const appsState = atom({
|
|||||||
backgroundColor: yellow[800],
|
backgroundColor: yellow[800],
|
||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/notes',
|
path: '/notes',
|
||||||
Route: () => <Route path='/notes' component={NotesApp} />,
|
Route: () => <AppRoute id="NOTES" path='/notes' component={NotesApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'CAMERA',
|
id: 'CAMERA',
|
||||||
@@ -132,7 +149,7 @@ const appsState = atom({
|
|||||||
backgroundColor: grey['A400'],
|
backgroundColor: grey['A400'],
|
||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/camera',
|
path: '/camera',
|
||||||
Route: () => <Route path='/camera' component={CameraApp} />,
|
Route: () => <AppRoute id="CAMERA" path='/camera' component={CameraApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'EXAMPLE',
|
id: 'EXAMPLE',
|
||||||
@@ -141,7 +158,7 @@ const appsState = atom({
|
|||||||
backgroundColor: blue[500],
|
backgroundColor: blue[500],
|
||||||
color: blue[50],
|
color: blue[50],
|
||||||
path: '/example',
|
path: '/example',
|
||||||
Route: () => <Route path='/example' component={ExampleApp} />,
|
Route: () => <AppRoute id="EXAMPLE" path='/example' component={ExampleApp}/>,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -158,5 +175,6 @@ export const useApps = () => {
|
|||||||
|
|
||||||
export const useApp = (id) => {
|
export const useApp = (id) => {
|
||||||
const { getApp } = useApps();
|
const { getApp } = useApps();
|
||||||
|
|
||||||
return getApp(id);
|
return getApp(id);
|
||||||
};
|
};
|
||||||
@@ -53,5 +53,5 @@ export const useNuiEvent = (
|
|||||||
window.addEventListener(eventName, eventListener, opts);
|
window.addEventListener(eventName, eventListener, opts);
|
||||||
// Remove Event Listener on component cleanup
|
// Remove Event Listener on component cleanup
|
||||||
return () => window.removeEventListener(eventName, eventListener, opts);
|
return () => window.removeEventListener(eventName, eventListener, opts);
|
||||||
}, [app, method, capture, passive, once]);
|
}, [app, method, capture, passive, once, currentState]);
|
||||||
};
|
};
|
||||||
@@ -35,12 +35,8 @@ export const AppIcon = ({ id, name, icon, backgroundColor, color }) => {
|
|||||||
color: color || green[400],
|
color: color || green[400],
|
||||||
});
|
});
|
||||||
|
|
||||||
const openAppCallback = () => {
|
|
||||||
Nui.send(`phone:app:${id}`);
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button onClick={openAppCallback} className={classes.root}>
|
<Button className={classes.root}>
|
||||||
<Avatar className={classes.avatar}>
|
<Avatar className={classes.avatar}>
|
||||||
{icon || name[0].toUpperCase()}
|
{icon || name[0].toUpperCase()}
|
||||||
</Avatar>
|
</Avatar>
|
||||||
|
|||||||
@@ -127,6 +127,10 @@ function takePhoto() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onNet(events.CAMERA_UPLOAD_PHOTO_SUCCESS, () => {
|
||||||
|
emitNet(events.CAMERA_FETCH_PHOTOS);
|
||||||
|
})
|
||||||
|
|
||||||
// delete photo
|
// delete photo
|
||||||
|
|
||||||
RegisterNuiCallbackType(events.CAMERA_DELETE_PHOTO);
|
RegisterNuiCallbackType(events.CAMERA_DELETE_PHOTO);
|
||||||
|
|||||||
@@ -37,13 +37,18 @@ async function getPlayerFromIdentifier(identifier: string): Promise<XPlayer> {
|
|||||||
|
|
||||||
async function saveCall(call: ICall) {
|
async function saveCall(call: ICall) {
|
||||||
const query =
|
const query =
|
||||||
'INSERT INTO npwd_calls (transmitter, receiver, start) VALUES (?, ?, ?)';
|
'INSERT INTO npwd_calls (identifier, transmitter, receiver, start) VALUES (?, ?, ?, ?)';
|
||||||
await pool.query(query, [call.transmitter, call.receiver, call.start]);
|
await pool.query(query, [
|
||||||
|
call.identifier,
|
||||||
|
call.transmitter,
|
||||||
|
call.receiver,
|
||||||
|
call.start,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updateCall(call: ICall, isAccepted: boolean, end?: number) {
|
async function updateCall(call: ICall, isAccepted: boolean, end: number) {
|
||||||
const query =
|
const query =
|
||||||
'UPDATE npwd_calls SET is_accepted, end (?, ?) WHERE identifier = ?';
|
'UPDATE npwd_calls SET is_accepted=?, end=? WHERE identifier = ?';
|
||||||
await pool.query(query, [isAccepted, end, call.identifier]);
|
await pool.query(query, [isAccepted, end, call.identifier]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +120,7 @@ onNet(events.PHONE_ACCEPT_CALL, async (transmitterNumber: string) => {
|
|||||||
const currentCall = calls.get(transmitterNumber);
|
const currentCall = calls.get(transmitterNumber);
|
||||||
const channelId = pSource;
|
const channelId = pSource;
|
||||||
|
|
||||||
await updateCall(currentCall, true);
|
await updateCall(currentCall, true, null);
|
||||||
|
|
||||||
// player who is being called
|
// player who is being called
|
||||||
emitNet(
|
emitNet(
|
||||||
|
|||||||
@@ -26,8 +26,14 @@ async function deletePhoto(photo: IPhoto, identifier: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onNet(events.CAMERA_UPLOAD_PHOTO, async (image: string) => {
|
onNet(events.CAMERA_UPLOAD_PHOTO, async (image: string) => {
|
||||||
const identifier = await useIdentifier();
|
try {
|
||||||
await uploadPhoto(identifier, image);
|
const pSource = (global as any).source;
|
||||||
|
const identifier = await useIdentifier();
|
||||||
|
await uploadPhoto(identifier, image);
|
||||||
|
emitNet(events.CAMERA_UPLOAD_PHOTO_SUCCESS, pSource);
|
||||||
|
} catch (error) {
|
||||||
|
console.dir(error)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onNet(events.CAMERA_FETCH_PHOTOS, async () => {
|
onNet(events.CAMERA_FETCH_PHOTOS, async () => {
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ export default {
|
|||||||
// camera
|
// camera
|
||||||
CAMERA_TAKE_PHOTO: 'phone:TakePhoto',
|
CAMERA_TAKE_PHOTO: 'phone:TakePhoto',
|
||||||
CAMERA_UPLOAD_PHOTO: 'phone:UploadPhoto',
|
CAMERA_UPLOAD_PHOTO: 'phone:UploadPhoto',
|
||||||
|
CAMERA_UPLOAD_PHOTO_SUCCESS: 'phone:UploadPhotoSuccess',
|
||||||
CAMERA_FETCH_PHOTOS: 'phone:FetchPhotos',
|
CAMERA_FETCH_PHOTOS: 'phone:FetchPhotos',
|
||||||
CAMERA_SEND_PHOTOS: 'phone:SendPhotos',
|
CAMERA_SEND_PHOTOS: 'phone:SendPhotos',
|
||||||
CAMERA_DELETE_PHOTO: 'photo:deletePhoto',
|
CAMERA_DELETE_PHOTO: 'photo:deletePhoto',
|
||||||
|
|||||||
Reference in new issue
Block a user