Browse Source

try

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
871547939e
  1. 4
      dist/src/controllers/messages.js
  2. 2
      dist/src/controllers/messages.js.map
  3. 4
      src/controllers/messages.ts

4
dist/src/controllers/messages.js

@ -154,6 +154,7 @@ exports.sendMessage = (req, res) => __awaiter(void 0, void 0, void 0, function*
let realSatsContactId;
// IF BOOST NEED TO SEND ACTUAL SATS TO OG POSTER
const isTribe = chat.type === constants_1.default.chat_types.tribe;
// const isTribeOwner = owner.publicKey===chat.owner_pubkey
if (reply_uuid && boost && amount) {
const ogMsg = yield models_1.models.Message.findOne({ where: {
uuid: reply_uuid,
@ -193,7 +194,8 @@ exports.sendMessage = (req, res) => __awaiter(void 0, void 0, void 0, function*
const msgToSend = {
id: message.id,
uuid: message.uuid,
content: remote_text_map || remote_text || text
content: remote_text_map || remote_text || text,
amount: amtToStore,
};
if (reply_uuid)
msgToSend.replyUuid = reply_uuid;

2
dist/src/controllers/messages.js.map

File diff suppressed because one or more lines are too long

4
src/controllers/messages.ts

@ -177,6 +177,7 @@ export const sendMessage = async (req, res) => {
let realSatsContactId
// IF BOOST NEED TO SEND ACTUAL SATS TO OG POSTER
const isTribe = chat.type===constants.chat_types.tribe
// const isTribeOwner = owner.publicKey===chat.owner_pubkey
if(reply_uuid && boost && amount) {
const ogMsg = await models.Message.findOne({where:{
uuid: reply_uuid,
@ -219,7 +220,8 @@ export const sendMessage = async (req, res) => {
const msgToSend:{[k:string]:any} = {
id: message.id,
uuid: message.uuid,
content: remote_text_map || remote_text || text
content: remote_text_map || remote_text || text,
amount: amtToStore,
}
if(reply_uuid) msgToSend.replyUuid=reply_uuid

Loading…
Cancel
Save