Remove trivial wrapper method
// FREEBIE
This commit is contained in:
parent
78cdc0cb52
commit
56238136ca
4 changed files with 5 additions and 13 deletions
|
@ -55,7 +55,7 @@ OutgoingMessage.prototype = {
|
|||
device.identityKey = response.identityKey;
|
||||
device.encodedNumber = number + "." + device.deviceId;
|
||||
if (updateDevices === undefined || updateDevices.indexOf(device.deviceId) > -1) {
|
||||
return textsecure.storage.devices.saveKeysToDeviceObject(device).catch(function(error) {
|
||||
return textsecure.protocol_wrapper.processPreKey(device).catch(function(error) {
|
||||
if (error.message === "Identity key changed") {
|
||||
error = new textsecure.OutgoingIdentityKeyError(
|
||||
number, this.message.toArrayBuffer(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue