Apply expireTimer to outgoing messages
This commit is contained in:
parent
2b2c6ab040
commit
824b7417e9
3 changed files with 33 additions and 8 deletions
|
@ -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));
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue