diff --git a/api/controllers/contacts.ts b/api/controllers/contacts.ts index 01c73fecc..aebdee450 100644 --- a/api/controllers/contacts.ts +++ b/api/controllers/contacts.ts @@ -72,24 +72,19 @@ export const updateContact = async (req, res) => { let attrs = extractAttrs(req.body) const contact = await models.Contact.findOne({ where: { id: req.params.id }}) - let shouldSendUpdatedSelf = ( - contact.isOwner && ( - (contact.contactKey == null && attrs["contact_key"] != null) || // CREATE CONTACT KEY! - attrs["contact_key"]==null // OR NO NEW CONTACT KEY - ) - ) - + // update self const owner = await contact.update(jsonUtils.jsonToContact(attrs)) success(res, jsonUtils.contactToJson(owner)) - if (!shouldSendUpdatedSelf) return - - // send updated owner info to others + if (!contact.isOwner) return + // else: + // send updated owner info to others! const contactIds = await models.Contact.findAll({where:{deleted:false}}) - .filter(c=> !c.fromGroup && c.id!==1 && c.publicKey).map(c=> c.id) + .filter(c=> c.id!==1 && c.publicKey).map(c=> c.id) if (contactIds.length == 0) return + console.log("=> send contact_key to", contactIds) helpers.sendContactKeys({ contactIds: contactIds, sender: owner, diff --git a/api/helpers.ts b/api/helpers.ts index b7423daa3..ce60ab4fd 100644 --- a/api/helpers.ts +++ b/api/helpers.ts @@ -87,7 +87,7 @@ export const performKeysendMessage = async ({ destination_key, amount, msg, succ // console.log("=> keysend to new contact") if (success) success(r) } catch (e) { - console.log("MESSAGE ERROR", e) + console.log("MESSAGE ERROR to", destination_key, e) if (failure) failure(e) } } diff --git a/dist/api/controllers/contacts.js b/dist/api/controllers/contacts.js index 24b27897c..6233bfb10 100644 --- a/dist/api/controllers/contacts.js +++ b/dist/api/controllers/contacts.js @@ -68,19 +68,18 @@ exports.updateContact = (req, res) => __awaiter(void 0, void 0, void 0, function console.log('=> updateContact called', { body: req.body, params: req.params, query: req.query }); let attrs = extractAttrs(req.body); const contact = yield models_1.models.Contact.findOne({ where: { id: req.params.id } }); - let shouldSendUpdatedSelf = (contact.isOwner && ((contact.contactKey == null && attrs["contact_key"] != null) || // CREATE CONTACT KEY! - attrs["contact_key"] == null // OR NO NEW CONTACT KEY - )); // update self const owner = yield contact.update(jsonUtils.jsonToContact(attrs)); res_1.success(res, jsonUtils.contactToJson(owner)); - if (!shouldSendUpdatedSelf) + if (!contact.isOwner) return; - // send updated owner info to others + // else: + // send updated owner info to others! const contactIds = yield models_1.models.Contact.findAll({ where: { deleted: false } }) - .filter(c => !c.fromGroup && c.id !== 1 && c.publicKey).map(c => c.id); + .filter(c => c.id !== 1 && c.publicKey).map(c => c.id); if (contactIds.length == 0) return; + console.log("=> send contact_key to", contactIds); helpers.sendContactKeys({ contactIds: contactIds, sender: owner, diff --git a/dist/api/controllers/contacts.js.map b/dist/api/controllers/contacts.js.map index bdb3ce569..6c160b133 100644 --- a/dist/api/controllers/contacts.js.map +++ b/dist/api/controllers/contacts.js.map @@ -1 +1 @@ -{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../api/controllers/contacts.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAgC;AAChC,iCAAgC;AAChC,0CAAyC;AACzC,sCAAqC;AACrC,2CAA0C;AAC1C,sCAA6C;AAC7C,gDAAwC;AACxC,6BAA4B;AAC5B,yCAA8B;AAE9B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAC,6BAA6B,CAAC,CAAC,CAAA;AAEhE,QAAA,WAAW,GAAG,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;IAC7C,MAAM,QAAQ,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAC,EAAC,OAAO,EAAC,KAAK,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IACnF,MAAM,OAAO,GAAG,MAAM,eAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1D,MAAM,KAAK,GAAG,MAAM,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,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WAAW,CAAC,KAAK,GAAG,YAAY,CAAA;QACjD,IAAG,gBAAgB;YAAE,WAAW,CAAC,QAAQ,GAAG,gBAAgB,CAAA;QAC5D,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;QAEhC,MAAM,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC;SACzC,CAAC,CAAA;KACF;AACF,CAAC,CAAA,CAAA;AAED,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE;IAC3B,IAAI,gBAAgB,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,CAAC,CAAA;IAC9I,IAAI,KAAK,GAAG,EAAE,CAAA;IACd,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAC/B,IAAI,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACnC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;SACtB;IACF,CAAC,CAAC,CAAA;IACF,OAAO,KAAK,CAAA;AACb,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/api/helpers.js b/dist/api/helpers.js index f87b93b95..24771dbf9 100644 --- a/dist/api/helpers.js +++ b/dist/api/helpers.js @@ -94,7 +94,7 @@ exports.performKeysendMessage = ({ destination_key, amount, msg, success, failur success(r); } catch (e) { - console.log("MESSAGE ERROR", e); + console.log("MESSAGE ERROR to", destination_key, e); if (failure) failure(e); } diff --git a/dist/api/helpers.js.map b/dist/api/helpers.js.map index a2ad7ab5d..952abd136 100644 --- a/dist/api/helpers.js.map +++ b/dist/api/helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../api/helpers.ts"],"names":[],"mappings":";;;;;;;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