Browse Source

fix

bugfix/timeout-logging
Evan Feenstra 5 years ago
parent
commit
2deb41c3ad
  1. 3
      api/network/send.ts
  2. 3
      dist/api/network/send.js
  3. 2
      dist/api/network/send.js.map

3
api/network/send.ts

@ -60,6 +60,9 @@ export async function sendMessage(params) {
} }
const contact = await models.Contact.findOne({ where: { id: contactId } }) const contact = await models.Contact.findOne({ where: { id: contactId } })
if(!contact){
return // skip if u simply dont have the contact
}
const destkey = contact.publicKey const destkey = contact.publicKey
if(destkey===skipPubKey) { if(destkey===skipPubKey) {
return // skip (for tribe owner broadcasting, not back to the sender) return // skip (for tribe owner broadcasting, not back to the sender)

3
dist/api/network/send.js

@ -66,6 +66,9 @@ function sendMessage(params) {
return; return;
} }
const contact = yield models_1.models.Contact.findOne({ where: { id: contactId } }); const contact = yield models_1.models.Contact.findOne({ where: { id: contactId } });
if (!contact) {
return; // skip if u simply dont have the contact
}
const destkey = contact.publicKey; const destkey = contact.publicKey;
if (destkey === skipPubKey) { if (destkey === skipPubKey) {
return; // skip (for tribe owner broadcasting, not back to the sender) return; // skip (for tribe owner broadcasting, not back to the sender)

2
dist/api/network/send.js.map

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