There's no need to wrap this function inside a function afaict
This commit is contained in:
parent
ae98b8680f
commit
266600e5ab
1 changed files with 22 additions and 24 deletions
|
@ -756,8 +756,7 @@ window.textsecure.subscribeToPush = function(message_callback) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
window.textsecure.registerSingleDevice = function() {
|
window.textsecure.registerSingleDevice = function(number, verificationCode, stepDone) {
|
||||||
return function(number, verificationCode, stepDone) {
|
|
||||||
var signalingKey = textsecure.crypto.getRandomBytes(32 + 20);
|
var signalingKey = textsecure.crypto.getRandomBytes(32 + 20);
|
||||||
textsecure.storage.putEncrypted('signaling_key', signalingKey);
|
textsecure.storage.putEncrypted('signaling_key', signalingKey);
|
||||||
|
|
||||||
|
@ -783,7 +782,6 @@ window.textsecure.registerSingleDevice = function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}();
|
|
||||||
|
|
||||||
window.textsecure.registerSecondDevice = function(encodedDeviceInit, cryptoInfo, stepDone) {
|
window.textsecure.registerSecondDevice = function(encodedDeviceInit, cryptoInfo, stepDone) {
|
||||||
var deviceInit = textsecure.protos.decodeDeviceInit(encodedDeviceInit);
|
var deviceInit = textsecure.protos.decodeDeviceInit(encodedDeviceInit);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue