Commit 9ab30321 authored by Muhammadali's avatar Muhammadali

update-

parent aed4f1c4
{
"name": "boxdialer",
"version": "2.6.7",
"version": "2.6.8",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -215,6 +215,7 @@ export class BoxDialer {
}
getBxUiState(sipState) {
console.log('this_callDirection: ', this.callDirection);
if (sipState && !!sipState.length) sipState = this.sipState;
let uiStates = {
stack_i_new_call: this.callDirection === 'in' ? 'incoming' : 'outgoing',
......
......@@ -8,7 +8,8 @@ import Modal from '../components/Modal';
import BxMiniWidjetUi from '../components/BxMiniWidjetUi';
import SecondNotifSip from '../components/SecondNotifSip';
// setWsphonedata;
const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => {
// const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => {
const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
// const [dataSecond, setDataSecond] = useState([]);
// if (!data) {
// data = {
......@@ -69,6 +70,14 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => {
let result = await onSetDnd(e);
setWsphonedata(result);
};
const getTransferers = async (e) => {
let result = await callMethod({
method: 'getPeers',
});
setWsphonedata(result);
};
const selectWidjetType = (type) => {
switch (type) {
case 'bxmini':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment