mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(client/call): make pma-voice the default export (#232)
- mumble-voip is no longer maintained and is recommended to not be used.
This commit is contained in:
1 parent
054f89c03d
commit
488c8df5cb
1 file changed
+2
-2
@@ -37,7 +37,7 @@ on(`__cfx_nui:${CallEvents.ACCEPT_CALL}`, (data: any, cb: Function) => {
|
|||||||
onNet(
|
onNet(
|
||||||
CallEvents.WAS_ACCEPTED,
|
CallEvents.WAS_ACCEPTED,
|
||||||
(channelId: number, currentCall: CallHistoryItem, isTransmitter: boolean) => {
|
(channelId: number, currentCall: CallHistoryItem, isTransmitter: boolean) => {
|
||||||
exp['mumble-voip'].SetCallChannel(channelId);
|
exp['pma-voice'].setCallChannel(channelId);
|
||||||
phoneCallStartAnim(); // Trigger call animation only if the call was accepted.
|
phoneCallStartAnim(); // Trigger call animation only if the call was accepted.
|
||||||
SendNuiMessage(
|
SendNuiMessage(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
@@ -90,7 +90,7 @@ on(`__cfx_nui:${CallEvents.END_CALL}`, (data: any, cb: Function) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onNet(CallEvents.WAS_ENDED, () => {
|
onNet(CallEvents.WAS_ENDED, () => {
|
||||||
exp['mumble-voip'].SetCallChannel(0);
|
exp['pma-voice'].setCallChannel(0);
|
||||||
openCallModal(false);
|
openCallModal(false);
|
||||||
|
|
||||||
SendNuiMessage(
|
SendNuiMessage(
|
||||||
|
|||||||
Reference in new issue
Block a user