mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(calls): fix some bugs encountered during refactor
This commit is contained in:
1 parent
10c5e97088
commit
af6e291368
9 files changed
+15
-15
No files matched your search
@@ -7,11 +7,8 @@ import { useApp } from '../../../os/apps/hooks/useApps';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
import DialPage from './views/DialPage';
|
||||
import DialerNavBar from './DialerNavBar';
|
||||
import { useDialHistory } from '../hooks/useDialHistory';
|
||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||
import { ContactList } from '../../contacts/components/List/ContactList';
|
||||
import { DialerThemeProvider } from '../providers/DialerThemeProvider';
|
||||
import { CallEvents } from '../../../../../typings/call';
|
||||
import { Box, CircularProgress } from '@material-ui/core';
|
||||
|
||||
const LoadingSpinner: React.FC = () => (
|
||||
|
||||
@@ -48,7 +48,7 @@ export const CallControls = ({ isSmall }: { isSmall?: boolean }) => {
|
||||
|
||||
// We display only the hang up if the call is accepted
|
||||
// or we are the one calling
|
||||
if (call.accepted || call.isTransmitter)
|
||||
if (call.is_accepted || call.isTransmitter)
|
||||
return (
|
||||
<Box display="flex" justifyContent="center" px={2} my={2}>
|
||||
<StatusIconButton
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { AppWrapper } from '../../../ui/components/AppWrapper';
|
||||
import { AppWrapper } from '../../../ui/components';
|
||||
import { AppContent } from '../../../ui/components/AppContent';
|
||||
import { useCall } from '../hooks/useCall';
|
||||
import { CallTimer } from './CallTimer';
|
||||
@@ -37,7 +37,7 @@ export const CallModal = () => {
|
||||
<Box className={classes.root} padding={5}>
|
||||
<Box>
|
||||
<CallContactContainer />
|
||||
{call.accepted ? <CallTimer /> : call.isTransmitter && <RingingText />}
|
||||
{call.is_accepted ? <CallTimer /> : call.isTransmitter && <RingingText />}
|
||||
</Box>
|
||||
<CallControls />
|
||||
</Box>
|
||||
|
||||
@@ -33,7 +33,7 @@ export const useCallNotifications = () => {
|
||||
removeId(NOTIFICATION_ID);
|
||||
return;
|
||||
}
|
||||
if (call.accepted) {
|
||||
if (call.is_accepted) {
|
||||
removeId(NOTIFICATION_ID);
|
||||
addNotification({
|
||||
...callNotificationBase,
|
||||
@@ -47,7 +47,7 @@ export const useCallNotifications = () => {
|
||||
title: t('APPS_DIALER_CURRENT_CALL_TITLE'),
|
||||
});
|
||||
}
|
||||
if (!call.isTransmitter && !call.accepted) {
|
||||
if (!call.isTransmitter && !call.is_accepted) {
|
||||
play();
|
||||
removeId(NOTIFICATION_ID);
|
||||
addNotificationAlert(
|
||||
|
||||
Reference in new issue
Block a user