Browse Source

log

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
2b324b7c6f
  1. 1
      api/controllers/contacts.ts
  2. 1
      dist/api/controllers/contacts.js
  3. 2
      dist/api/controllers/contacts.js.map

1
api/controllers/contacts.ts

@ -200,6 +200,7 @@ const receiveConfirmContactKey = async (payload) => {
}
const sender = await models.Contact.findOne({ where: { publicKey: sender_pub_key, status: constants.contact_statuses.confirmed }})
console.log('sender',sender)
if (sender_contact_key && sender) {
if(!sender.alias || sender.alias==='Unknown') {
sender.update({ contactKey: sender_contact_key, alias: sender_alias })

1
dist/api/controllers/contacts.js

@ -181,6 +181,7 @@ const receiveConfirmContactKey = (payload) => __awaiter(void 0, void 0, void 0,
// download and store photo locally
}
const sender = yield models_1.models.Contact.findOne({ where: { publicKey: sender_pub_key, status: constants.contact_statuses.confirmed } });
console.log('sender', sender);
if (sender_contact_key && sender) {
if (!sender.alias || sender.alias === 'Unknown') {
sender.update({ contactKey: sender_contact_key, alias: sender_alias });

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

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save