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.
		
		
		
		
		
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			644 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			25 lines
		
	
	
		
			644 B
		
	
	
	
		
			TypeScript
		
	
| import { SignalService } from '../../../../../../protobuf';
 | |
| import {
 | |
|   ClosedGroupMessage,
 | |
|   ClosedGroupMessageParams,
 | |
| } from './ClosedGroupMessage';
 | |
| 
 | |
| export class ClosedGroupLeaveMessage extends ClosedGroupMessage {
 | |
|   constructor(params: ClosedGroupMessageParams) {
 | |
|     super({
 | |
|       timestamp: params.timestamp,
 | |
|       identifier: params.identifier,
 | |
|       groupId: params.groupId,
 | |
|     });
 | |
|   }
 | |
| 
 | |
|   protected groupContext(): SignalService.GroupContext {
 | |
|     // use the parent method to fill id correctly
 | |
|     const groupContext = super.groupContext();
 | |
| 
 | |
|     groupContext.type = SignalService.GroupContext.Type.QUIT;
 | |
| 
 | |
|     return groupContext;
 | |
|   }
 | |
| }
 |