mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 03:18:17 +01:00
Send timer update messages when changing the timer
This commit is contained in:
@@ -182,10 +182,18 @@
|
||||
}
|
||||
});
|
||||
message.save();
|
||||
return message;
|
||||
},
|
||||
sendExpirationTimerUpdate: function(time) {
|
||||
this.addExpirationTimerUpdate(time, textsecure.storage.user.getNumber());
|
||||
// todo: send.
|
||||
var message = this.addExpirationTimerUpdate(time, textsecure.storage.user.getNumber());
|
||||
var sendFunc;
|
||||
if (this.get('type') == 'private') {
|
||||
sendFunc = textsecure.messaging.sendExpirationTimerUpdateToNumber;
|
||||
}
|
||||
else {
|
||||
sendFunc = textsecure.messaging.sendExpirationTimerUpdateToGroup;
|
||||
}
|
||||
message.send(sendFunc(this.get('id'), this.get('expireTimer'), message.get('sent_at')));
|
||||
},
|
||||
|
||||
isSearchable: function() {
|
||||
|
||||
Reference in New Issue
Block a user