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.
19 lines
467 B
TypeScript
19 lines
467 B
TypeScript
import { ContentMessage } from './ContentMessage';
|
|
import { SignalService } from '../../../../protobuf';
|
|
|
|
export abstract class TypingMessage extends ContentMessage {
|
|
|
|
public ttl(): number {
|
|
return 60 * 1000; // 1 minute for typing indicators
|
|
}
|
|
|
|
protected contentProto(): SignalService.Content {
|
|
return new SignalService.Content({
|
|
typingMessage: this.typingProto(),
|
|
});
|
|
}
|
|
|
|
protected abstract typingProto(): SignalService.TypingMessage;
|
|
|
|
}
|