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.
24 lines
660 B
TypeScript
24 lines
660 B
TypeScript
import { SyncMessage } from './SyncMessage';
|
|
import { SignalService } from '../../../../../protobuf';
|
|
|
|
export abstract class RequestContactSyncMessage extends SyncMessage {
|
|
public ttl(): number {
|
|
return this.getDefaultTTL();
|
|
}
|
|
|
|
protected contentProto(): SignalService.Content {
|
|
return new SignalService.Content({
|
|
syncMessage: this.syncProto(),
|
|
});
|
|
}
|
|
|
|
protected syncProto(): SignalService.SyncMessage {
|
|
const { CONTACTS } = SignalService.SyncMessage.Request.Type;
|
|
const syncMessage = this.createSyncMessage();
|
|
syncMessage.request = new SignalService.SyncMessage.Request({type: CONTACTS});
|
|
|
|
|
|
return syncMessage;
|
|
}
|
|
}
|