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.
		
		
		
		
		
			
		
			
				
	
	
		
			13 lines
		
	
	
		
			443 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			13 lines
		
	
	
		
			443 B
		
	
	
	
		
			TypeScript
		
	
| import { CipherTextObject } from '../../../../../libtextsecure/libsignal-protocol';
 | |
| import { SignalService } from '../../../../protobuf';
 | |
| import { StringUtils } from '../../../../session/utils';
 | |
| 
 | |
| export class FallBackSessionCipherStub {
 | |
|   public async encrypt(buffer: ArrayBuffer): Promise<CipherTextObject> {
 | |
|     return {
 | |
|       type: SignalService.Envelope.Type.SESSION_REQUEST,
 | |
|       body: StringUtils.decode(buffer, 'binary'),
 | |
|     };
 | |
|   }
 | |
| }
 |