From fbb3b07b7b9ca7bcb4f0712f2c5da3e31ea4157b Mon Sep 17 00:00:00 2001 From: Christopher Date: Fri, 29 Jan 2021 19:54:37 +0100 Subject: [PATCH] feat(calling/client|server): show dail history --- resources/client/cl_call.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/resources/client/cl_call.ts b/resources/client/cl_call.ts index 37008d1..06a0a6d 100644 --- a/resources/client/cl_call.ts +++ b/resources/client/cl_call.ts @@ -1,6 +1,6 @@ import { ESX } from './client'; import events from '../utils/events'; -import { ICall } from '../../phone/src/common/typings/call' +import { ICall, ICallUI } from '../../phone/src/common/typings/call' const exp = (global as any).exports; @@ -32,6 +32,7 @@ on(`__cfx_nui:${events.PHONE_ACCEPT_CALL}`, (data: any) => { }); onNet(events.PHONE_CALL_WAS_ACCEPTED, (channelId: number, currentCall: ICall, isTransmitter: boolean) => { + exp['mumble-voip'].SetCallChannel(channelId); SendNuiMessage( @@ -102,4 +103,14 @@ function openCallModal(show: boolean) { data: show, }) ); -} \ No newline at end of file +} + +onNet(events.PHONE_CALL_SEND_HISTORY, (calls: ICallUI) => { + SendNuiMessage( + JSON.stringify({ + app: 'DAILER', + method: 'setHistory', + data: calls + }) + ) +}) \ No newline at end of file