|
|
|
@ -57,7 +57,7 @@ import { perfEnd, perfStart } from '../session/utils/Performance';
|
|
|
|
|
import { AttachmentTypeWithPath } from '../types/Attachment';
|
|
|
|
|
|
|
|
|
|
export class MessageModel extends Backbone.Model<MessageAttributes> {
|
|
|
|
|
constructor(attributes: MessageAttributesOptionals) {
|
|
|
|
|
constructor(attributes: MessageAttributesOptionals & { skipTimerInit?: boolean }) {
|
|
|
|
|
const filledAttrs = fillMessageAttributesWithDefaults(attributes);
|
|
|
|
|
super(filledAttrs);
|
|
|
|
|
|
|
|
|
@ -76,7 +76,7 @@ export class MessageModel extends Backbone.Model<MessageAttributes> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// this.on('expired', this.onExpired);
|
|
|
|
|
if (!filledAttrs.skipTimerInit) {
|
|
|
|
|
if (!attributes.skipTimerInit) {
|
|
|
|
|
void this.setToExpire();
|
|
|
|
|
}
|
|
|
|
|
autoBind(this);
|
|
|
|
|