Browse Source

cleanup

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
f42c1da837
  1. 2
      dist/src/controllers/contacts.js
  2. 2
      dist/src/controllers/contacts.js.map
  3. 2
      src/controllers/contacts.ts

2
dist/src/controllers/contacts.js

@ -203,7 +203,6 @@ exports.receiveContactKey = (payload) => __awaiter(void 0, void 0, void 0, funct
const owner = yield models_1.models.Contact.findOne({ where: { isOwner: true } });
const sender = yield models_1.models.Contact.findOne({ where: { publicKey: sender_pub_key, status: constants_1.default.contact_statuses.confirmed } });
let contactKeyChanged = false;
console.log("ContACT KEY CHANGED?", contactKeyChanged);
if (sender_contact_key && sender) {
if (sender_contact_key !== sender.contactKey) {
contactKeyChanged = true;
@ -222,7 +221,6 @@ exports.receiveContactKey = (payload) => __awaiter(void 0, void 0, void 0, funct
else {
console.log("DID NOT FIND SENDER");
}
console.log("ContACT KEY CHANGED 2?", contactKeyChanged);
if (contactKeyChanged) {
helpers.sendContactKeys({
contactPubKey: sender_pub_key,

2
dist/src/controllers/contacts.js.map

File diff suppressed because one or more lines are too long

2
src/controllers/contacts.ts

@ -226,7 +226,6 @@ export const receiveContactKey = async (payload) => {
const owner = await models.Contact.findOne({ where: { isOwner: true }})
const sender = await models.Contact.findOne({ where: { publicKey: sender_pub_key, status: constants.contact_statuses.confirmed }})
let contactKeyChanged = false
console.log("ContACT KEY CHANGED?",contactKeyChanged)
if (sender_contact_key && sender) {
if(sender_contact_key!==sender.contactKey) {
contactKeyChanged = true
@ -244,7 +243,6 @@ export const receiveContactKey = async (payload) => {
console.log("DID NOT FIND SENDER")
}
console.log("ContACT KEY CHANGED 2?",contactKeyChanged)
if(contactKeyChanged) {
helpers.sendContactKeys({
contactPubKey: sender_pub_key,

Loading…
Cancel
Save