Fixed libsignal-protocol declaration
This commit is contained in:
parent
e1dc190ebf
commit
653efaf9cf
|
@ -1,8 +1,8 @@
|
|||
import { EncryptionType } from '../types/EncryptionType';
|
||||
import { SignalService } from '../../protobuf';
|
||||
import { libloki, libsignal, Signal, textsecure } from '../../window';
|
||||
import { CipherTextObject } from '../../window/types/libsignal-protocol';
|
||||
import { UserUtil } from '../../util';
|
||||
import { CipherTextObject } from '../../../libtextsecure/libsignal-protocol';
|
||||
|
||||
export function padPlainTextBuffer(messageBuffer: Uint8Array): Uint8Array {
|
||||
const plaintext = new Uint8Array(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { CipherTextObject } from '../../../../window/types/libsignal-protocol';
|
||||
import { CipherTextObject } from '../../../../../libtextsecure/libsignal-protocol';
|
||||
import { SignalService } from '../../../../protobuf';
|
||||
|
||||
export class FallBackSessionCipherStub {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { SignalService } from '../../../../protobuf';
|
||||
import { CipherTextObject } from '../../../../window/types/libsignal-protocol';
|
||||
import { CipherTextObject } from '../../../../../libtextsecure/libsignal-protocol';
|
||||
|
||||
export class SecretSessionCipherStub {
|
||||
public async encrypt(
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
CipherTextObject,
|
||||
SessionCipher,
|
||||
} from '../../../../window/types/libsignal-protocol';
|
||||
} from '../../../../../libtextsecure/libsignal-protocol';
|
||||
import { SignalService } from '../../../../protobuf';
|
||||
|
||||
export class SessionCipherStub implements SessionCipher {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { getItemById } from '../../js/modules/data';
|
||||
import { KeyPair } from '../window/types/libsignal-protocol';
|
||||
import { KeyPair } from '../../libtextsecure/libsignal-protocol';
|
||||
|
||||
export async function getCurrentDevicePubKey(): Promise<string | undefined> {
|
||||
const item = await getItemById('number_id');
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { LibsignalProtocol } from './types/libsignal-protocol';
|
||||
import { SignalInterface } from './types/signal';
|
||||
import { LocalizerType } from '../types/Util';
|
||||
import LokiMessageAPI from '../../js/modules/loki_message_api';
|
||||
import LokiPublicChatFactoryAPI from '../../js/modules/loki_public_chat_api';
|
||||
import { LibsignalProtocol } from '../../libtextsecure/libsignal-protocol';
|
||||
|
||||
interface WindowInterface extends Window {
|
||||
seedNodeList: any;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { SignalService } from '../../protobuf';
|
||||
import { CipherTextObject } from './libsignal-protocol';
|
||||
import { CipherTextObject } from '../../../libtextsecure/libsignal-protocol';
|
||||
|
||||
export declare class SecretSessionCipher {
|
||||
constructor(storage: any);
|
||||
|
|
Loading…
Reference in New Issue