|
|
|
@ -5,40 +5,38 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
|
|
|
|
|
|
|
import { MessageUtils, ToastUtils, UserUtils } from '..';
|
|
|
|
|
import { SignalService } from '../../../protobuf';
|
|
|
|
|
import { openConversationWithMessages } from '../../../state/ducks/conversations';
|
|
|
|
|
import {
|
|
|
|
|
CallStatusEnum,
|
|
|
|
|
answerCall,
|
|
|
|
|
callConnected,
|
|
|
|
|
callReconnecting,
|
|
|
|
|
CallStatusEnum,
|
|
|
|
|
endCall,
|
|
|
|
|
incomingCall,
|
|
|
|
|
setFullScreenCall,
|
|
|
|
|
startingCallWith,
|
|
|
|
|
} from '../../../state/ducks/call';
|
|
|
|
|
import { openConversationWithMessages } from '../../../state/ducks/conversations';
|
|
|
|
|
import { getConversationController } from '../../conversations';
|
|
|
|
|
import { CallMessage } from '../../messages/outgoing/controlMessage/CallMessage';
|
|
|
|
|
import { ed25519Str } from '../../onions/onionPath';
|
|
|
|
|
import { PubKey } from '../../types';
|
|
|
|
|
|
|
|
|
|
import { getIsRinging } from '../RingingManager';
|
|
|
|
|
import { getBlackSilenceMediaStream } from './Silence';
|
|
|
|
|
import { getMessageQueue } from '../..';
|
|
|
|
|
import { MessageSender } from '../../sending';
|
|
|
|
|
import { DURATION } from '../../constants';
|
|
|
|
|
import { Data } from '../../../data/data';
|
|
|
|
|
import { getCallMediaPermissionsSettings } from '../../../components/settings/SessionSettings';
|
|
|
|
|
import { PnServer } from '../../apis/push_notification_api';
|
|
|
|
|
import { Data } from '../../../data/data';
|
|
|
|
|
import { approveConvoAndSendResponse } from '../../../interactions/conversationInteractions';
|
|
|
|
|
import { GetNetworkTime } from '../../apis/snode_api/getNetworkTime';
|
|
|
|
|
import { SnodeNamespaces } from '../../apis/snode_api/namespaces';
|
|
|
|
|
import { READ_MESSAGE_STATE } from '../../../models/conversationAttributes';
|
|
|
|
|
import {
|
|
|
|
|
changeToDisappearingMessageType,
|
|
|
|
|
setExpirationStartTimestamp,
|
|
|
|
|
} from '../../../util/expiringMessages';
|
|
|
|
|
|
|
|
|
|
// tslint:disable: function-name
|
|
|
|
|
import { PnServer } from '../../apis/push_notification_api';
|
|
|
|
|
import { GetNetworkTime } from '../../apis/snode_api/getNetworkTime';
|
|
|
|
|
import { SnodeNamespaces } from '../../apis/snode_api/namespaces';
|
|
|
|
|
import { DURATION } from '../../constants';
|
|
|
|
|
import { MessageSender } from '../../sending';
|
|
|
|
|
import { getIsRinging } from '../RingingManager';
|
|
|
|
|
import { getBlackSilenceMediaStream } from './Silence';
|
|
|
|
|
|
|
|
|
|
export type InputItem = { deviceId: string; label: string };
|
|
|
|
|
|
|
|
|
|