Browse Source

fix casing

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
5aaad1fc4b
  1. 2
      dist/src/network/receive.js
  2. 2
      dist/src/network/receive.js.map
  3. 2
      src/network/receive.ts

2
dist/src/network/receive.js

@ -230,7 +230,7 @@ function forwardMessageToTribe(ogpayload, sender, realSatsContactId, amtToForwar
// ASK xref TABLE and put alias there too?
send_1.sendMessage({
type, message,
sender: Object.assign(Object.assign(Object.assign(Object.assign({}, owner.dataValues), payload.sender && payload.sender.alias && { alias: payload.sender.alias }), payload.sender && payload.sender.photo_url && { photo_url: payload.sender.photo_url }), { role: constants_1.default.chat_roles.reader }),
sender: Object.assign(Object.assign(Object.assign(Object.assign({}, owner.dataValues), payload.sender && payload.sender.alias && { alias: payload.sender.alias }), payload.sender && payload.sender.photo_url && { photoUrl: payload.sender.photo_url }), { role: constants_1.default.chat_roles.reader }),
amount: amtToForwardToRealSatsContactId || 0,
chat: chat,
skipPubKey: payload.sender.pub_key,

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

File diff suppressed because one or more lines are too long

2
src/network/receive.ts

@ -214,7 +214,7 @@ async function forwardMessageToTribe(ogpayload, sender, realSatsContactId, amtTo
sender: {
...owner.dataValues,
...payload.sender&&payload.sender.alias && {alias:payload.sender.alias},
...payload.sender&&payload.sender.photo_url && {photo_url:payload.sender.photo_url},
...payload.sender&&payload.sender.photo_url && {photoUrl:payload.sender.photo_url}, // camelcase here, this is usually the "sender" from DB
role: constants.chat_roles.reader,
},
amount: amtToForwardToRealSatsContactId||0,

Loading…
Cancel
Save