feat(contacts/nui | calling/client|server): getName | close modal on add | show dail history

This commit is contained in:
Christopher committed 2021-01-29 19:53:14 +01:00
1 parent 0f10eac796
commit 89ea248d32
9 files changed
+72 -43

No files matched your search

+28 -1
View File
@@ -30,6 +30,7 @@ import config from './config/default.json';
import { useRecoilState } from 'recoil';
import { useCallService } from './modal/hooks/useCallService';
import { useModal } from './modal/hooks/useModal';
import { useDailService } from './apps/dialer/hooks/useDailService';
// Inject mock data when in development env.
if (process.env.NODE_ENV === 'development') {
@@ -54,6 +55,31 @@ if (process.env.NODE_ENV === 'development') {
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent('message', {
data: {
app: 'DAILER',
method: 'setHistory',
data: [
{
id: 1,
transmitter: '636-6496',
transmitterName: 'Taso Weeb',
type: 'incoming'
},
{
id: 2,
transmitter: '777-7777',
transmitterName: 'Taso Weeb',
type: 'outgoing'
},
],
},
})
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent('message', {
@@ -102,7 +128,7 @@ if (process.env.NODE_ENV === 'development') {
{
id: 1,
display: 'Taso',
number: '43534444',
number: '456466',
},
],
},
@@ -279,6 +305,7 @@ function Phone() {
useNotesService();
usePhotoService();
useCallService();
useDailService();
const { modal } = useModal(); // the calling modal