Browse Source

fix

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
a0ebf620c0
  1. 2
      api/network/receive.ts
  2. 2
      dist/api/network/receive.js
  3. 2
      dist/api/network/receive.js.map

2
api/network/receive.ts

@ -16,7 +16,7 @@ const typesToForward=[
async function onReceive(payload){
// if tribe, owner must forward to MQTT
console.log("RECEIVED PAYLOAD",payload)
const isTribe = payload.chat.type===constants.chat_types.tribe
const isTribe = payload.chat && payload.chat.type===constants.chat_types.tribe
if(isTribe && typesToForward.includes(payload.type)){
const tribeOwnerPubKey = await tribes.verifySignedTimestamp(payload.chat.uuid)
const owner = await models.Contact.findOne({where: {isOwner:true}})

2
dist/api/network/receive.js

@ -26,7 +26,7 @@ function onReceive(payload) {
return __awaiter(this, void 0, void 0, function* () {
// if tribe, owner must forward to MQTT
console.log("RECEIVED PAYLOAD", payload);
const isTribe = payload.chat.type === constants.chat_types.tribe;
const isTribe = payload.chat && payload.chat.type === constants.chat_types.tribe;
if (isTribe && typesToForward.includes(payload.type)) {
const tribeOwnerPubKey = yield tribes.verifySignedTimestamp(payload.chat.uuid);
const owner = yield models_1.models.Contact.findOne({ where: { isOwner: true } });

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

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