Browse Source

ppm sutracted from boost mat

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

4
dist/src/network/receive.js

@ -185,6 +185,7 @@ function onReceive(payload) {
} }
function doTheAction(data) { function doTheAction(data) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
console.log("DO THE ACTION", data);
let payload = data; let payload = data;
if (payload.isTribeOwner) { // this is only for storing locally, my own messages as tribe owner if (payload.isTribeOwner) { // this is only for storing locally, my own messages as tribe owner
// actual encryption for tribe happens in personalizeMessage // actual encryption for tribe happens in personalizeMessage
@ -225,6 +226,9 @@ function forwardMessageToTribe(ogpayload, sender, realSatsContactId, amtToForwar
const message = payload.message; const message = payload.message;
// HERE: NEED TO MAKE SURE ALIAS IS UNIQUE // HERE: NEED TO MAKE SURE ALIAS IS UNIQUE
// ASK xref TABLE and put alias there too? // ASK xref TABLE and put alias there too?
if (amtToForwardToRealSatsContactId && message.amount) { // mutate the payload
message.amount = amtToForwardToRealSatsContactId; // show the real amount
}
send_1.sendMessage({ send_1.sendMessage({
type, message, type, message,
sender: Object.assign(Object.assign(Object.assign({}, owner.dataValues), payload.sender && payload.sender.alias && { alias: payload.sender.alias }), { role: constants_1.default.chat_roles.reader }), sender: Object.assign(Object.assign(Object.assign({}, owner.dataValues), payload.sender && payload.sender.alias && { alias: payload.sender.alias }), { role: constants_1.default.chat_roles.reader }),

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

File diff suppressed because one or more lines are too long

4
src/network/receive.ts

@ -168,6 +168,7 @@ async function onReceive(payload){
} }
async function doTheAction(data){ async function doTheAction(data){
console.log("DO THE ACTION",data)
let payload = data let payload = data
if(payload.isTribeOwner) { // this is only for storing locally, my own messages as tribe owner if(payload.isTribeOwner) { // this is only for storing locally, my own messages as tribe owner
// actual encryption for tribe happens in personalizeMessage // actual encryption for tribe happens in personalizeMessage
@ -206,6 +207,9 @@ async function forwardMessageToTribe(ogpayload, sender, realSatsContactId, amtTo
const message = payload.message const message = payload.message
// HERE: NEED TO MAKE SURE ALIAS IS UNIQUE // HERE: NEED TO MAKE SURE ALIAS IS UNIQUE
// ASK xref TABLE and put alias there too? // ASK xref TABLE and put alias there too?
if(amtToForwardToRealSatsContactId && message.amount) { // mutate the payload
message.amount = amtToForwardToRealSatsContactId // show the real amount
}
sendMessage({ sendMessage({
type, message, type, message,
sender: { sender: {

Loading…
Cancel
Save