Browse Source

cleanup

push-params
Evan Feenstra 5 years ago
parent
commit
47549120cf
  1. 2
      api/network/receive.ts
  2. 2
      api/network/send.ts
  3. 2
      dist/api/network/receive.js
  4. 2
      dist/api/network/receive.js.map
  5. 2
      dist/api/network/send.js
  6. 2
      dist/api/network/send.js.map

2
api/network/receive.ts

@ -34,7 +34,7 @@ export const typesToReplay=[ // should match typesToForward
msgtypes.message, msgtypes.group_join, msgtypes.group_leave
]
async function onReceive(payload){
console.log("=> ON RECEIVE",payload)
// console.log("=> ON RECEIVE",payload)
// if tribe, owner must forward to MQTT
let doAction = true
const toAddIn:{[k:string]:any} = {}

2
api/network/send.ts

@ -15,7 +15,7 @@ export async function sendMessage(params) {
const { type, chat, message, sender, amount, success, failure, skipPubKey } = params
let msg = newmsg(type, chat, sender, message)
console.log("=> MSG TO SEND",msg)
// console.log("=> MSG TO SEND",msg)
// console.log(type,message)
if(!(sender&&sender.publicKey)) {

2
dist/api/network/receive.js

@ -43,7 +43,7 @@ exports.typesToReplay = [
];
function onReceive(payload) {
return __awaiter(this, void 0, void 0, function* () {
console.log("=> ON RECEIVE", payload);
// console.log("=> ON RECEIVE",payload)
// if tribe, owner must forward to MQTT
let doAction = true;
const toAddIn = {};

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

File diff suppressed because one or more lines are too long

2
dist/api/network/send.js

@ -22,7 +22,7 @@ function sendMessage(params) {
return __awaiter(this, void 0, void 0, function* () {
const { type, chat, message, sender, amount, success, failure, skipPubKey } = params;
let msg = newmsg(type, chat, sender, message);
console.log("=> MSG TO SEND", msg);
// console.log("=> MSG TO SEND",msg)
// console.log(type,message)
if (!(sender && sender.publicKey)) {
console.log("NO SENDER?????");

2
dist/api/network/send.js.map

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