Browse Source

fix pubkey in replay history

hosting-provider
Evan Feenstra 5 years ago
parent
commit
3fcaa26d80
  1. 5
      api/controllers/chatTribes.ts
  2. 5
      dist/api/controllers/chatTribes.js
  3. 2
      dist/api/controllers/chatTribes.js.map

5
api/controllers/chatTribes.ts

@ -196,7 +196,10 @@ async function replayChatHistory(chat, contact) {
msg = await decryptMessage(msg, chat)
const data = await personalizeMessage(msg, contact, true)
const mqttTopic = `${contact.publicKey}/${chat.uuid}`
await network.signAndSend({data}, mqttTopic)
await network.signAndSend({
data,
dest: contact.publicKey,
}, mqttTopic)
})
}

5
dist/api/controllers/chatTribes.js

@ -186,7 +186,10 @@ function replayChatHistory(chat, contact) {
msg = yield msg_1.decryptMessage(msg, chat);
const data = yield msg_1.personalizeMessage(msg, contact, true);
const mqttTopic = `${contact.publicKey}/${chat.uuid}`;
yield network.signAndSend({ data }, mqttTopic);
yield network.signAndSend({
data,
dest: contact.publicKey,
}, mqttTopic);
}));
});
}

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

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