Remove getRegistrationId and encryptMessageFor from protocol_wrapper
We can now use protocol classes like SessionCipher directly because it supports per-device read/write serialization internally. // FREEBIE
This commit is contained in:
parent
284cf5be3a
commit
843036f0ce
4 changed files with 18 additions and 44 deletions
|
@ -38,12 +38,7 @@
|
|||
return textsecure.storage.protocol.getDeviceIds(number).then(function(deviceIds) {
|
||||
return Promise.all(deviceIds.map(function(deviceId) {
|
||||
var address = new libsignal.SignalProtocolAddress(number, deviceId).toString();
|
||||
return textsecure.protocol_wrapper.getRegistrationId(address).then(function(registrationId) {
|
||||
return {
|
||||
encodedNumber : address,
|
||||
registrationId : registrationId
|
||||
};
|
||||
});
|
||||
return { encodedNumber : address };
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue