mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 17:08:11 +01:00
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:
@@ -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 };
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user