You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
383 B
TypeScript
12 lines
383 B
TypeScript
5 years ago
|
import { CipherTextObject } from '../../../../window/types/libsignal-protocol';
|
||
|
import { SignalService } from '../../../../protobuf';
|
||
|
|
||
|
export class FallBackSessionCipherStub {
|
||
|
public async encrypt(buffer: ArrayBuffer): Promise<CipherTextObject> {
|
||
|
return {
|
||
|
type: SignalService.Envelope.Type.FRIEND_REQUEST,
|
||
|
body: Buffer.from(buffer).toString('binary'),
|
||
|
};
|
||
|
}
|
||
|
}
|