Browse Source

Merge pull request #4 from stakwork/sender-socket

sender socket
feature/dockerfile-arm v0.7.5
Evan Feenstra 5 years ago
committed by GitHub
parent
commit
c8db0d9382
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      api/controllers/confirmations.ts
  2. 2
      api/controllers/invoices.ts
  3. 8
      api/controllers/media.ts
  4. 2
      api/controllers/messages.ts
  5. 2
      api/controllers/payment.ts
  6. 8
      api/grpc/index.ts
  7. 3
      api/utils/json.ts
  8. 4
      dist/api/controllers/confirmations.js
  9. 2
      dist/api/controllers/confirmations.js.map
  10. 2
      dist/api/controllers/invoices.js
  11. 2
      dist/api/controllers/invoices.js.map
  12. 8
      dist/api/controllers/media.js
  13. 2
      dist/api/controllers/media.js.map
  14. 2
      dist/api/controllers/messages.js
  15. 2
      dist/api/controllers/messages.js.map
  16. 2
      dist/api/controllers/payment.js
  17. 2
      dist/api/controllers/payment.js.map
  18. 4
      dist/api/grpc/index.js
  19. 2
      dist/api/grpc/index.js.map
  20. 4
      dist/api/utils/json.js
  21. 2
      dist/api/utils/json.js.map

4
api/controllers/confirmations.ts

@ -45,7 +45,7 @@ export async function receiveConfirmation(payload) {
})
socket.sendJson({
type: 'confirmation',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
})
}
done()
@ -71,7 +71,7 @@ export async function receiveConfirmation(payload) {
socket.sendJson({
type: 'confirmation',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
})
}
}

2
api/controllers/invoices.ts

@ -212,7 +212,7 @@ const receiveInvoice = async (payload) => {
socket.sendJson({
type: 'invoice',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
})
sendNotification(chat, sender.alias, 'message')

8
api/controllers/media.ts

@ -185,7 +185,7 @@ const purchase = async (req, res) => {
message: msg,
success: async (data) => {
console.log('purchase sent', { data })
resUtils.success(res, jsonUtils.messageToJson(message))
resUtils.success(res, jsonUtils.messageToJson(message, chat))
},
failure: error=> resUtils.failure(res, error.message),
})
@ -318,7 +318,7 @@ const receivePurchaseAccept = async (payload) => {
})
socket.sendJson({
type: 'purchase_accept',
response: jsonUtils.messageToJson(msg, chat)
response: jsonUtils.messageToJson(msg, chat, sender)
})
}
@ -344,7 +344,7 @@ const receivePurchaseDeny = async (payload) => {
})
socket.sendJson({
type: 'purchase_deny',
response: jsonUtils.messageToJson(msg, chat)
response: jsonUtils.messageToJson(msg, chat, sender)
})
}
@ -378,7 +378,7 @@ const receiveAttachment = async (payload) => {
socket.sendJson({
type: 'attachment',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
})
sendNotification(chat, sender.alias, 'message')

2
api/controllers/messages.ts

@ -166,7 +166,7 @@ const receiveMessage = async (payload) => {
socket.sendJson({
type: 'message',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
})
sendNotification(chat, sender.alias, 'message')

2
api/controllers/payment.ts

@ -145,7 +145,7 @@ const receivePayment = async (payload) => {
socket.sendJson({
type: 'direct_payment',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
})
sendNotification(chat, sender.alias, 'message')

8
api/grpc/index.ts

@ -112,12 +112,14 @@ function subscribeInvoices(actions) {
createdAt: new Date(settleDate),
updatedAt: new Date(settleDate)
})
const sender = await models.Contact.findOne({ where: { id: senderId } })
socket.sendJson({
type: 'payment',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
})
const sender = await models.Contact.findOne({ where: { id: senderId } })
sendNotification(chat, sender.alias, 'message')
}
});

3
api/utils/json.ts

@ -13,7 +13,7 @@ function chatToJson(c) {
})
}
function messageToJson(msg, chat = null) {
function messageToJson(msg, chat, contact?) {
const message = msg.dataValues||msg
let statusMap = message.statusMap || null
if(message.statusMap && typeof message.statusMap==='string'){
@ -23,6 +23,7 @@ function messageToJson(msg, chat = null) {
...message,
statusMap,
chat: chat ? chatToJson(chat) : null,
contact: contact ? contactToJson(contact) : null
})
}

4
dist/api/controllers/confirmations.js

@ -53,7 +53,7 @@ function receiveConfirmation(payload) {
});
socket.sendJson({
type: 'confirmation',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
});
}
done();
@ -79,7 +79,7 @@ function receiveConfirmation(payload) {
message.update({ status: constants.statuses.received });
socket.sendJson({
type: 'confirmation',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
});
}
});

2
dist/api/controllers/confirmations.js.map

@ -1 +1 @@
{"version":3,"file":"confirmations.js","sourceRoot":"","sources":["../../../api/controllers/confirmations.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wCAAgC;AAChC,sCAAgC;AAChC,0CAAyC;AACzC,2CAA0C;AAC1C,sCAAqC;AAErC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,8BAA8B,CAAC,CAAA;AAErE,SAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE;IACxD,OAAO,CAAC,WAAW,CAAC;QACnB,IAAI;QACJ,MAAM;QACN,OAAO,EAAE,EAAC,EAAE,EAAC,MAAM,EAAC;QACpB,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,YAAY;KAC1C,CAAC,CAAA;AACH,CAAC;AAPD,4CAOC;AAED,SAAsB,mBAAmB,CAAC,OAAO;;QAChD,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA;QAEjD,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,IAAI,OAAO,CAAA;QACtC,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;QAC/B,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,EAAE,CAAA;QAC7B,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAA;QAEzC,MAAM,KAAK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C,QAAQ,EAAE,CAAC,CAAA;YAEvD,MAAM,CAAC,QAAQ,CAAC;gBACf,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC;aACxD,CAAC,CAAA;SACF;IACF,CAAC;CAAA;AA3DD,kDA2DC"}

2
dist/api/controllers/invoices.js

@ -194,7 +194,7 @@ const receiveInvoice = (payload) => __awaiter(void 0, void 0, void 0, function*
console.log('received keysend invoice message', message.id);
socket.sendJson({
type: 'invoice',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
});
hub_1.sendNotification(chat, sender.alias, 'message');
const theChat = Object.assign(Object.assign({}, chat.dataValues), { contactIds: [sender.id] });

2
dist/api/controllers/invoices.js.map

File diff suppressed because one or more lines are too long

8
dist/api/controllers/media.js

@ -164,7 +164,7 @@ const purchase = (req, res) => __awaiter(void 0, void 0, void 0, function* () {
message: msg,
success: (data) => __awaiter(void 0, void 0, void 0, function* () {
console.log('purchase sent', { data });
resUtils.success(res, jsonUtils.messageToJson(message));
resUtils.success(res, jsonUtils.messageToJson(message, chat));
}),
failure: error => resUtils.failure(res, error.message),
});
@ -287,7 +287,7 @@ const receivePurchaseAccept = (payload) => __awaiter(void 0, void 0, void 0, fun
});
socket.sendJson({
type: 'purchase_accept',
response: jsonUtils.messageToJson(msg, chat)
response: jsonUtils.messageToJson(msg, chat, sender)
});
});
exports.receivePurchaseAccept = receivePurchaseAccept;
@ -313,7 +313,7 @@ const receivePurchaseDeny = (payload) => __awaiter(void 0, void 0, void 0, funct
});
socket.sendJson({
type: 'purchase_deny',
response: jsonUtils.messageToJson(msg, chat)
response: jsonUtils.messageToJson(msg, chat, sender)
});
});
exports.receivePurchaseDeny = receivePurchaseDeny;
@ -345,7 +345,7 @@ const receiveAttachment = (payload) => __awaiter(void 0, void 0, void 0, functio
console.log('saved attachment', message.dataValues);
socket.sendJson({
type: 'attachment',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
});
hub_1.sendNotification(chat, sender.alias, 'message');
const theChat = Object.assign(Object.assign({}, chat.dataValues), { contactIds: [sender.id] });

2
dist/api/controllers/media.js.map

File diff suppressed because one or more lines are too long

2
dist/api/controllers/messages.js

@ -144,7 +144,7 @@ const receiveMessage = (payload) => __awaiter(void 0, void 0, void 0, function*
console.log('saved message', message.dataValues);
socket.sendJson({
type: 'message',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
});
hub_1.sendNotification(chat, sender.alias, 'message');
const theChat = Object.assign(Object.assign({}, chat.dataValues), { contactIds: [sender.id] });

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

File diff suppressed because one or more lines are too long

2
dist/api/controllers/payment.js

@ -133,7 +133,7 @@ const receivePayment = (payload) => __awaiter(void 0, void 0, void 0, function*
console.log('saved message', message.dataValues);
socket.sendJson({
type: 'direct_payment',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
});
hub_1.sendNotification(chat, sender.alias, 'message');
});

2
dist/api/controllers/payment.js.map

File diff suppressed because one or more lines are too long

4
dist/api/grpc/index.js

@ -120,11 +120,11 @@ function subscribeInvoices(actions) {
createdAt: new Date(settleDate),
updatedAt: new Date(settleDate)
});
const sender = yield models_1.models.Contact.findOne({ where: { id: senderId } });
socket.sendJson({
type: 'payment',
response: jsonUtils.messageToJson(message, chat)
response: jsonUtils.messageToJson(message, chat, sender)
});
const sender = yield models_1.models.Contact.findOne({ where: { id: senderId } });
hub_1.sendNotification(chat, sender.alias, 'message');
}
});

2
dist/api/grpc/index.js.map

File diff suppressed because one or more lines are too long

4
dist/api/utils/json.js

@ -11,13 +11,13 @@ function chatToJson(c) {
return case_1.toSnake(Object.assign(Object.assign({}, chat), { contactIds }));
}
exports.chatToJson = chatToJson;
function messageToJson(msg, chat = null) {
function messageToJson(msg, chat, contact) {
const message = msg.dataValues || msg;
let statusMap = message.statusMap || null;
if (message.statusMap && typeof message.statusMap === 'string') {
statusMap = JSON.parse(message.statusMap);
}
return case_1.toSnake(Object.assign(Object.assign({}, message), { statusMap, chat: chat ? chatToJson(chat) : null }));
return case_1.toSnake(Object.assign(Object.assign({}, message), { statusMap, chat: chat ? chatToJson(chat) : null, contact: contact ? contactToJson(contact) : null }));
}
exports.messageToJson = messageToJson;
const contactToJson = (contact) => case_1.toSnake(contact.dataValues || contact);

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

@ -1 +1 @@
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../api/utils/json.ts"],"names":[],"mappings":";;AAAA,wCAA6C;AAC7C,oCAAmC;AAEnC,SAAS,UAAU,CAAC,CAAC;IACnB,MAAM,IAAI,GAAG,CAAC,CAAC,UAAU,IAAE,CAAC,CAAA;IAC5B,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAA;IACxC,IAAG,IAAI,CAAC,UAAU,IAAI,OAAO,IAAI,CAAC,UAAU,KAAG,QAAQ,EAAC;QACtD,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;KACzC;IACD,OAAO,cAAO,iCACT,IAAI,KACP,UAAU,IACV,CAAA;AACJ,CAAC;AAqCC,gCAAU;AAnCZ,SAAS,aAAa,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI;IACrC,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,IAAE,GAAG,CAAA;IACnC,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,IAAI,CAAA;IACzC,IAAG,OAAO,CAAC,SAAS,IAAI,OAAO,OAAO,CAAC,SAAS,KAAG,QAAQ,EAAC;QAC1D,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;KAC1C;IACD,OAAO,cAAO,iCACT,OAAO,KACV,SAAS,EACT,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,C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