Ensure that expired messages are removed from the frontend

This commit is contained in:
lilia 2016-09-21 16:26:42 -07:00
parent 02ea4f2475
commit 1383dc141f
4 changed files with 24 additions and 3 deletions

View file

@ -105,6 +105,11 @@
}
return this.imageUrl;
},
getConversation: function() {
return ConversationController.add({
id: this.get('conversationId')
});
},
getContact: function() {
var conversationId = this.get('source');
if (!this.isIncoming()) {
@ -390,6 +395,8 @@
this.expirationTimeout = null;
this.trigger('expired', this);
this.destroy();
this.getConversation().trigger('expired', this);
},
setToExpire: function() {
if (this.get('expireTimer') && this.get('expirationStartTimestamp') && !this.expireTimer) {