Remove unused destinationRegistrationId; lint

pull/721/head
Maxim Shishmarev 4 years ago
parent b7e93ab597
commit 3472a1a938

@ -1,12 +1,11 @@
{
"storageProfile": "swarm-testing",
"seedNodeList": [
{
"ip": "localhost",
"port": "22129"
}
],
"openDevTools": true,
"defaultPublicChatServer": "https://team-chat.lokinet.org/"
}
"storageProfile": "swarm-testing",
"seedNodeList": [
{
"ip": "localhost",
"port": "22129"
}
],
"openDevTools": true,
"defaultPublicChatServer": "https://team-chat.lokinet.org/"
}

@ -1,12 +1,11 @@
{
"storageProfile": "swarm-testing2",
"seedNodeList": [
{
"ip": "localhost",
"port": "22129"
}
],
"openDevTools": true,
"defaultPublicChatServer": "https://team-chat.lokinet.org/"
}
"storageProfile": "swarm-testing2",
"seedNodeList": [
{
"ip": "localhost",
"port": "22129"
}
],
"openDevTools": true,
"defaultPublicChatServer": "https://team-chat.lokinet.org/"
}

@ -110,7 +110,7 @@
let existingMembers = groupConvo.get('members');
// Show a contact if they are our friend or if they are a member
let friendsAndMembers = convos.filter(
const friendsAndMembers = convos.filter(
d =>
(d.isFriend() || existingMembers.includes(d.id)) &&
d.isPrivate() &&

@ -226,7 +226,6 @@
// Send
const options = { messageType: 'pairing-request' };
const p = new Promise((resolve, reject) => {
const timestamp = Date.now();
const outgoingMessage = new textsecure.OutgoingMessage(

@ -414,7 +414,6 @@ OutgoingMessage.prototype = {
let content;
let type;
let destinationRegistrationId;
if (window.lokiFeatureFlags.useSealedSender) {
const secretSessionCipher = new window.Signal.Metadata.SecretSessionCipher(
@ -436,8 +435,6 @@ OutgoingMessage.prototype = {
type = textsecure.protobuf.Envelope.Type.UNIDENTIFIED_SENDER;
content = window.Signal.Crypto.arrayBufferToBase64(ciphertext);
destinationRegistrationId = null;
} else {
// TODO: probably remove this branch once
// mobile clients implement sealed sender
@ -454,7 +451,6 @@ OutgoingMessage.prototype = {
// eslint-disable-next-line prefer-destructuring
type = ciphertext.type;
content = ciphertext.body;
destinationRegistrationId = ciphertext.registrationId;
}
const ttl = getTTLForType(thisDeviceMessageType);
@ -464,7 +460,6 @@ OutgoingMessage.prototype = {
ttl,
ourKey,
sourceDevice: 1,
destinationRegistrationId,
content,
pubKey: devicePubKey,
};

Loading…
Cancel
Save