Remove processPreKey from protocol_wrapper

Use SessionBuilder directly instead of protocol_wrapper

// FREEBIE
This commit is contained in:
lilia 2016-05-01 14:46:16 -07:00
parent 843036f0ce
commit 891ddacd35
4 changed files with 10 additions and 18 deletions

View file

@ -76,13 +76,6 @@
throw e;
});
});
},
processPreKey: function(preKeyBundle) {
return queueJobForNumber(preKeyBundle.encodedNumber, function() {
var address = libsignal.SignalProtocolAddress.fromString(preKeyBundle.encodedNumber);
var builder = new libsignal.SessionBuilder(textsecure.storage.protocol, address);
return builder.processPreKey(preKeyBundle);
});
}
};
})();