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

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

@ -20,8 +20,6 @@
"start-multi2": "cross-env NODE_APP_INSTANCE=2 electron .", "start-multi2": "cross-env NODE_APP_INSTANCE=2 electron .",
"start-prod": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod 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-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": "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 .", "start-swarm-test-2": "cross-env NODE_ENV=swarm-testing NODE_APP_INSTANCE=2 electron .",
"grunt": "grunt", "grunt": "grunt",

Loading…
Cancel
Save