Browse Source

bug fix n logs

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
17e1555541
  1. 2
      .gitignore
  2. 2
      api/controllers/chats.ts
  3. 2
      api/helpers.ts
  4. 2
      dist/api/controllers/chats.js
  5. 2
      dist/api/controllers/chats.js.map
  6. 1
      dist/api/helpers.js
  7. 2
      dist/api/helpers.js.map

2
.gitignore

@ -1,3 +1,5 @@
notes.md
dist/config/app.json
dist/config/config.json

2
api/controllers/chats.ts

@ -199,7 +199,7 @@ async function receiveGroupJoin(payload) {
const msg = {
chatId: chat.id,
type: constants.message_types.group_join,
sender: sender.id,
sender: theSender.id,
date: date,
messageContent: '',
remoteMessageContent: '',

2
api/helpers.ts

@ -90,6 +90,8 @@ const sendMessage = async (params) => {
return
}
console.log('-> sending to contact #', contactId)
const contact = await models.Contact.findOne({ where: { id: contactId } })
const destkey = contact.publicKey

2
dist/api/controllers/chats.js

@ -197,7 +197,7 @@ function receiveGroupJoin(payload) {
const msg = {
chatId: chat.id,
type: constants.message_types.group_join,
sender: sender.id,
sender: theSender.id,
date: date,
messageContent: '',
remoteMessageContent: '',

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

File diff suppressed because one or more lines are too long

1
dist/api/helpers.js

@ -94,6 +94,7 @@ const sendMessage = (params) => __awaiter(void 0, void 0, void 0, function* () {
if (contactId == sender.id) {
return;
}
console.log('-> sending to contact #', contactId);
const contact = yield models_1.models.Contact.findOne({ where: { id: contactId } });
const destkey = contact.publicKey;
const finalMsg = yield msg_1.personalizeMessage(m, contactId, destkey);

2
dist/api/helpers.js.map

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