From 4e88d4a5cf069fb01d073fd9c295736fb8da2094 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 20 Jul 2015 16:13:50 -0700 Subject: [PATCH] Add missing semicolons --- js/libtextsecure.js | 11 +++++------ libtextsecure/sendmessage.js | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 1aa182ec..6d5a6989 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -39852,7 +39852,7 @@ window.textsecure.messaging = function() { numbersCompleted++; if (numbersCompleted >= numbers.length) callback({success: successfulNumbers, failure: errors}); - } + }; var registerError = function(number, message, error) { if (error) { @@ -39862,9 +39862,8 @@ window.textsecure.messaging = function() { error = new Error(message); errors[errors.length] = { number: number, reason: message, error: error }; numberCompleted(); - } + }; - var doSendMessage; var reloadDevicesAndSend = function(number, recurse) { return function() { return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devicesForNumber) { @@ -39873,9 +39872,9 @@ window.textsecure.messaging = function() { doSendMessage(number, devicesForNumber, recurse); }); } - } + }; - doSendMessage = function(number, devicesForNumber, recurse) { + var doSendMessage = function(number, devicesForNumber, recurse) { var groupUpdate = Promise.resolve(true); if (message.group && message.group.id && message.group.type != textsecure.protobuf.GroupContext.Type.QUIT) groupUpdate = refreshGroup(number, message.group.id, devicesForNumber); @@ -39918,7 +39917,7 @@ window.textsecure.messaging = function() { registerError(number, "Identity key changed", error); } }); - } + }; var getDevicesAndSendToNumber = function(number) { textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devicesForNumber) { diff --git a/libtextsecure/sendmessage.js b/libtextsecure/sendmessage.js index d5515139..d8124390 100644 --- a/libtextsecure/sendmessage.js +++ b/libtextsecure/sendmessage.js @@ -156,7 +156,7 @@ window.textsecure.messaging = function() { numbersCompleted++; if (numbersCompleted >= numbers.length) callback({success: successfulNumbers, failure: errors}); - } + }; var registerError = function(number, message, error) { if (error) { @@ -166,9 +166,8 @@ window.textsecure.messaging = function() { error = new Error(message); errors[errors.length] = { number: number, reason: message, error: error }; numberCompleted(); - } + }; - var doSendMessage; var reloadDevicesAndSend = function(number, recurse) { return function() { return textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devicesForNumber) { @@ -177,9 +176,9 @@ window.textsecure.messaging = function() { doSendMessage(number, devicesForNumber, recurse); }); } - } + }; - doSendMessage = function(number, devicesForNumber, recurse) { + var doSendMessage = function(number, devicesForNumber, recurse) { var groupUpdate = Promise.resolve(true); if (message.group && message.group.id && message.group.type != textsecure.protobuf.GroupContext.Type.QUIT) groupUpdate = refreshGroup(number, message.group.id, devicesForNumber); @@ -222,7 +221,7 @@ window.textsecure.messaging = function() { registerError(number, "Identity key changed", error); } }); - } + }; var getDevicesAndSendToNumber = function(number) { textsecure.storage.devices.getDeviceObjectsForNumber(number).then(function(devicesForNumber) {