Refactor messageSender/OutgoingMessage
Move encrypt and transmit to OutgoingMessage Restore per-number queueing to messageSender // FREEBIE
This commit is contained in:
parent
adf8445b85
commit
7b6820d2ac
4 changed files with 166 additions and 158 deletions
|
@ -255,9 +255,8 @@ var TextSecureServer = (function() {
|
|||
return res;
|
||||
});
|
||||
},
|
||||
sendMessages: function(destination, messageArray) {
|
||||
var jsonData = { messages: messageArray };
|
||||
jsonData.timestamp = messageArray[0].timestamp;
|
||||
sendMessages: function(destination, messageArray, timestamp) {
|
||||
var jsonData = { messages: messageArray, timestamp: timestamp};
|
||||
|
||||
return this.ajax({
|
||||
call : 'messages',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue