|
|
@ -83,6 +83,7 @@
|
|
|
|
this.on('change:expirationStartTimestamp', this.setToExpire);
|
|
|
|
this.on('change:expirationStartTimestamp', this.setToExpire);
|
|
|
|
this.on('change:expireTimer', this.setToExpire);
|
|
|
|
this.on('change:expireTimer', this.setToExpire);
|
|
|
|
this.on('unload', this.unload);
|
|
|
|
this.on('unload', this.unload);
|
|
|
|
|
|
|
|
this.on('expired', this.onExpired);
|
|
|
|
this.setToExpire();
|
|
|
|
this.setToExpire();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
idForLogging() {
|
|
|
|
idForLogging() {
|
|
|
@ -233,7 +234,9 @@
|
|
|
|
this.quotedMessage = null;
|
|
|
|
this.quotedMessage = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
onExpired() {
|
|
|
|
|
|
|
|
this.hasExpired = true;
|
|
|
|
|
|
|
|
},
|
|
|
|
getPropsForTimerNotification() {
|
|
|
|
getPropsForTimerNotification() {
|
|
|
|
const { expireTimer, fromSync, source } = this.get(
|
|
|
|
const { expireTimer, fromSync, source } = this.get(
|
|
|
|
'expirationTimerUpdate'
|
|
|
|
'expirationTimerUpdate'
|
|
|
@ -424,6 +427,7 @@
|
|
|
|
attachment: this.getPropsForAttachment(firstAttachment),
|
|
|
|
attachment: this.getPropsForAttachment(firstAttachment),
|
|
|
|
quote: this.getPropsForQuote(),
|
|
|
|
quote: this.getPropsForQuote(),
|
|
|
|
authorAvatarPath,
|
|
|
|
authorAvatarPath,
|
|
|
|
|
|
|
|
isExpired: this.hasExpired,
|
|
|
|
expirationLength,
|
|
|
|
expirationLength,
|
|
|
|
expirationTimestamp,
|
|
|
|
expirationTimestamp,
|
|
|
|
onReply: () => this.trigger('reply', this),
|
|
|
|
onReply: () => this.trigger('reply', this),
|
|
|
|