diff --git a/config/production-devprod2.json b/config/production-devprod2.json deleted file mode 100644 index 62437286b..000000000 --- a/config/production-devprod2.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "openDevTools": true, - "updatesEnabled": false -} diff --git a/libtextsecure/outgoing_message.js b/libtextsecure/outgoing_message.js index 25fc9ce67..5ccb2adbc 100644 --- a/libtextsecure/outgoing_message.js +++ b/libtextsecure/outgoing_message.js @@ -478,7 +478,7 @@ OutgoingMessage.prototype = { // Send a message to a private group or a session chat (one to one) async sendSessionMessage(outgoingObjects) { // TODO: handle multiple devices/messages per transmit - const promises = outgoingObjects.map(outgoingObject => async () => { + const promiseFns = outgoingObjects.map(outgoingObject => async () => { if (!outgoingObject) { return; } @@ -512,7 +512,7 @@ OutgoingMessage.prototype = { } }); - await Promise.all(promises.map(f => f())); + await Promise.all(promiseFns.map(f => f())); this.numbersCompleted += this.successfulNumbers.length; this.numberCompleted(); diff --git a/package.json b/package.json index 8f047f3cf..3472e45d7 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "start-multi2": "cross-env NODE_APP_INSTANCE=2 electron .", "start-prod": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod electron .", "start-prod-multi": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod1 electron .", - "start-prod-multi2": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod2 electron .", "start-swarm-test": "cross-env NODE_ENV=swarm-testing NODE_APP_INSTANCE=1 electron .", "start-swarm-test-2": "cross-env NODE_ENV=swarm-testing NODE_APP_INSTANCE=2 electron .", "grunt": "grunt",