Browse Source

logz

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
b95c6d2145
  1. 4
      api/utils/msg.ts
  2. 4
      dist/api/utils/msg.js
  3. 2
      dist/api/utils/msg.js.map

4
api/utils/msg.ts

@ -6,8 +6,12 @@ const constants = require(path.join(__dirname,'../../config/constants.json'))
function addInRemoteText(full:{[k:string]:any}, contactId, isTribe:boolean){
const m = full && full.message
console.log('m && m.content',m && m.content)
console.log('typeof m.content',typeof m.content)
if (!(m && m.content)) return full
if (!(typeof m.content==='object')) return full
console.log('contactId',contactId)
console.log('isTribe',isTribe)
if(isTribe) {
// if just one, send it (for tribe remote_text_map... is there a better way?)
if(Object.values(m.content).length===1) {

4
dist/api/utils/msg.js

@ -15,10 +15,14 @@ const rsa = require("../crypto/rsa");
const constants = require(path.join(__dirname, '../../config/constants.json'));
function addInRemoteText(full, contactId, isTribe) {
const m = full && full.message;
console.log('m && m.content', m && m.content);
console.log('typeof m.content', typeof m.content);
if (!(m && m.content))
return full;
if (!(typeof m.content === 'object'))
return full;
console.log('contactId', contactId);
console.log('isTribe', isTribe);
if (isTribe) {
// if just one, send it (for tribe remote_text_map... is there a better way?)
if (Object.values(m.content).length === 1) {

2
dist/api/utils/msg.js.map

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