Remove clgs

pull/1109/head
Vincent 5 years ago
parent 9f2688561a
commit 3cbb90516f

@ -168,8 +168,6 @@
const deviceIds = await textsecure.storage.protocol.getDeviceIds(id);
console.log('[vince] deviceIds:', deviceIds);
await Promise.all(
deviceIds.map(deviceId => {
const address = new libsignal.SignalProtocolAddress(id, deviceId);
@ -178,9 +176,6 @@
address
);
console.log('[vince] address:', address);
console.log('[vince] sessionCipher:', sessionCipher);
return sessionCipher.deleteAllSessionsForDevice();
})
);

@ -2235,8 +2235,6 @@
});
message.set({ id });
console.log('[vince] conversations.js --> groupUpdate:', groupUpdate);
const options = this.getSendOptions();
message.send(
this.wrapSend(
@ -2274,31 +2272,31 @@
const groupNumbers = this.getRecipients();
this.set({ left: true });
// await window.Signal.Data.updateConversation(this.id, this.attributes, {
// Conversation: Whisper.Conversation,
// });
// const message = this.messageCollection.add({
// group_update: { left: 'You' },
// conversationId: this.id,
// type: 'outgoing',
// sent_at: now,
// received_at: now,
// });
// const id = await window.Signal.Data.saveMessage(message.attributes, {
// Message: Whisper.Message,
// });
// message.set({ id });
// const options = this.getSendOptions();
// message.send(
// this.wrapSend(
// textsecure.messaging.leaveGroup(this.id, groupNumbers, options)
// )
// );
// this.updateTextInputState();
await window.Signal.Data.updateConversation(this.id, this.attributes, {
Conversation: Whisper.Conversation,
});
const message = this.messageCollection.add({
group_update: { left: 'You' },
conversationId: this.id,
type: 'outgoing',
sent_at: now,
received_at: now,
});
const id = await window.Signal.Data.saveMessage(message.attributes, {
Message: Whisper.Message,
});
message.set({ id });
const options = this.getSendOptions();
message.send(
this.wrapSend(
textsecure.messaging.leaveGroup(this.id, groupNumbers, options)
)
);
this.updateTextInputState();
}
},

@ -1427,10 +1427,6 @@ MessageReceiver.prototype.extend({
);
}
console.log('[vince] THIS IS A syncMessage:');
console.log('[vince] envelope:', envelope);
console.log('[vince] syncMessage:', syncMessage);
if (syncMessage.sent) {
const sentMessage = syncMessage.sent;
const to = sentMessage.message.group

@ -20,8 +20,6 @@
"start-multi2": "cross-env NODE_APP_INSTANCE=2 electron .",
"start-prod": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod electron .",
"start-prod-multi": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod1 electron .",
"start-prod-multi2": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod2 electron .",
"start-prod-multi3": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod3 electron .",
"start-swarm-test": "cross-env NODE_ENV=swarm-testing NODE_APP_INSTANCE=1 electron .",
"start-swarm-test-2": "cross-env NODE_ENV=swarm-testing NODE_APP_INSTANCE=2 electron .",
"grunt": "grunt",

Loading…
Cancel
Save