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.
20 lines
605 B
TypeScript
20 lines
605 B
TypeScript
import { Constants } from '../../../..';
|
|
import { SignalService } from '../../../../../protobuf';
|
|
import { ClosedGroupMessage } from './ClosedGroupMessage';
|
|
|
|
export class ClosedGroupMemberLeftMessage extends ClosedGroupMessage {
|
|
public dataProto(): SignalService.DataMessage {
|
|
const dataMessage = super.dataProto();
|
|
|
|
// tslint:disable: no-non-null-assertion
|
|
dataMessage.closedGroupControlMessage!.type =
|
|
SignalService.DataMessage.ClosedGroupControlMessage.Type.MEMBER_LEFT;
|
|
|
|
return dataMessage;
|
|
}
|
|
|
|
public ttl(): number {
|
|
return Constants.TTL_DEFAULT.REGULAR_MESSAGE;
|
|
}
|
|
}
|