Browse Source

log

hosting-provider
Evan Feenstra 5 years ago
parent
commit
681c1b18fa
  1. 2
      api/helpers.ts
  2. 2
      dist/api/helpers.js
  3. 2
      dist/api/helpers.js.map

2
api/helpers.ts

@ -38,6 +38,7 @@ const findOrCreateChat = async (params) => {
const sendContactKeys = async (args) => {
const { type, contactIds, contactPubKey, sender, success, failure } = args
const msg = newkeyexchangemsg(type, sender)
console.log("MSG",msg)
let yes:any = null
let no:any = null
@ -198,6 +199,7 @@ async function asyncForEach(array, callback) {
function newkeyexchangemsg(type, sender){
const includePhotoUrl = sender && sender.photoUrl && !sender.privatePhoto
console.log('includePhotoUrl',includePhotoUrl)
return {
type: type,
sender: {

2
dist/api/helpers.js

@ -45,6 +45,7 @@ exports.findOrCreateChat = findOrCreateChat;
const sendContactKeys = (args) => __awaiter(void 0, void 0, void 0, function* () {
const { type, contactIds, contactPubKey, sender, success, failure } = args;
const msg = newkeyexchangemsg(type, sender);
console.log("MSG", msg);
let yes = null;
let no = null;
let cids = contactIds;
@ -204,6 +205,7 @@ function asyncForEach(array, callback) {
}
function newkeyexchangemsg(type, sender) {
const includePhotoUrl = sender && sender.photoUrl && !sender.privatePhoto;
console.log('includePhotoUrl', includePhotoUrl);
return {
type: type,
sender: Object.assign(Object.assign({ pub_key: sender.publicKey, contact_key: sender.contactKey }, sender.alias && { alias: sender.alias }), includePhotoUrl && { photo_url: sender.photoUrl })

2
dist/api/helpers.js.map

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