Apply expireTimer to outgoing messages

This commit is contained in:
lilia 2016-09-28 16:54:05 -07:00
parent 2b2c6ab040
commit 824b7417e9
3 changed files with 33 additions and 8 deletions

View file

@ -141,7 +141,8 @@
type : 'outgoing',
attachments : attachments,
sent_at : now,
received_at : now
received_at : now,
expireTimer : this.get('expireTimer')
});
if (this.isPrivate()) {
message.set({destination: this.id});
@ -162,7 +163,7 @@
else {
sendFunc = textsecure.messaging.sendMessageToGroup;
}
message.send(sendFunc(this.get('id'), body, attachments, now));
message.send(sendFunc(this.get('id'), body, attachments, now, this.get('expireTimer')));
}.bind(this));
},