Browse Source

Merge pull request #123 from stakwork/key-x

key x
dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
committed by GitHub
parent
commit
ff6a09d369
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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

@ -202,7 +202,7 @@ 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;
let contactKeyChanged = true;
if (sender_contact_key && sender) {
if (sender_contact_key !== sender.contactKey) {
contactKeyChanged = true;

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

File diff suppressed because one or more lines are too long

2
src/controllers/contacts.ts

@ -225,7 +225,7 @@ 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
let contactKeyChanged = true
if (sender_contact_key && sender) {
if(sender_contact_key!==sender.contactKey) {
contactKeyChanged = true

Loading…
Cancel
Save