From 5c19211b111fe4f8f9d3859f27f4851dedf4d9aa Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Tue, 2 Jun 2020 08:25:51 -0700 Subject: [PATCH] full meme roundtrip' --- api/controllers/media.ts | 8 +++++--- api/helpers.ts | 3 ++- api/models/ts/mediaKey.ts | 3 +++ api/models/ts/message.ts | 3 +++ api/network/modify.ts | 22 +++++++++------------- api/utils/setup.ts | 2 ++ dist/api/controllers/media.js | 8 +++++--- dist/api/controllers/media.js.map | 2 +- dist/api/helpers.js | 3 ++- dist/api/helpers.js.map | 2 +- dist/api/models/ts/mediaKey.js | 4 ++++ dist/api/models/ts/mediaKey.js.map | 2 +- dist/api/models/ts/message.js | 4 ++++ dist/api/models/ts/message.js.map | 2 +- dist/api/network/modify.js | 20 +++++++++----------- dist/api/network/modify.js.map | 2 +- dist/api/utils/setup.js | 2 ++ dist/api/utils/setup.js.map | 2 +- 18 files changed, 56 insertions(+), 38 deletions(-) diff --git a/api/controllers/media.ts b/api/controllers/media.ts index 9ff3102..0aa1b8f 100644 --- a/api/controllers/media.ts +++ b/api/controllers/media.ts @@ -106,7 +106,7 @@ const sendAttachmentMessage = async (req, res) => { updatedAt: date }) - saveMediaKeys(muid, media_key_map, chat.id, message.id) + saveMediaKeys(muid, media_key_map, chat.id, message.id, mediaType) const mediaTerms: {[k:string]:any} = { muid, ttl:TTL, @@ -134,7 +134,7 @@ const sendAttachmentMessage = async (req, res) => { }) } -function saveMediaKeys(muid, mediaKeyMap, chatId, messageId){ +function saveMediaKeys(muid, mediaKeyMap, chatId, messageId, mediaType){ if (typeof mediaKeyMap!=='object'){ console.log('wrong type for mediaKeyMap') return @@ -148,6 +148,7 @@ function saveMediaKeys(muid, mediaKeyMap, chatId, messageId){ muid, chatId, key, messageId, receiver: receiverID, createdAt: date, + mediaType }) } } @@ -333,7 +334,7 @@ const receivePurchaseAccept = async (payload) => { var date = new Date(); date.setMilliseconds(0) - const {owner, sender, chat, mediaToken, mediaKey, mediaType} = await helpers.parseReceiveParams(payload) + const {owner, sender, chat, mediaToken, mediaKey, mediaType, originalMuid} = await helpers.parseReceiveParams(payload) if(!owner || !sender || !chat) { return console.log('=> no group chat!') } @@ -362,6 +363,7 @@ const receivePurchaseAccept = async (payload) => { mediaToken, mediaKey, mediaType, + originalMuid:originalMuid||'', date: date, createdAt: date, updatedAt: date diff --git a/api/helpers.ts b/api/helpers.ts index e973efa..26a73c4 100644 --- a/api/helpers.ts +++ b/api/helpers.ts @@ -145,6 +145,7 @@ async function parseReceiveParams(payload) { const content = dat.message.content const remote_content = dat.message.remoteContent const mediaToken = dat.message.mediaToken + const originalMuid = dat.message.originalMuid const msg_id = dat.message.id||0 const msg_uuid = dat.message.uuid||'' const mediaKey = dat.message.mediaKey @@ -171,7 +172,7 @@ async function parseReceiveParams(payload) { } chat = await models.Chat.findOne({ where: { uuid: chat_uuid } }) } - return { owner, sender, chat, sender_pub_key, sender_alias, isTribeOwner, chat_uuid, amount, content, mediaToken, mediaKey, mediaType, chat_type, msg_id, chat_members, chat_name, chat_host, chat_key, remote_content, msg_uuid } + return { owner, sender, chat, sender_pub_key, sender_alias, isTribeOwner, chat_uuid, amount, content, mediaToken, mediaKey, mediaType, originalMuid, chat_type, msg_id, chat_members, chat_name, chat_host, chat_key, remote_content, msg_uuid } } export { diff --git a/api/models/ts/mediaKey.ts b/api/models/ts/mediaKey.ts index 0d5b119..373720b 100644 --- a/api/models/ts/mediaKey.ts +++ b/api/models/ts/mediaKey.ts @@ -37,6 +37,9 @@ export default class MediaKey extends Model { @Column createdAt: Date + @Column + mediaType: string + @Column(DataType.BIGINT) sender: number // for tribe, remember the sender diff --git a/api/models/ts/message.ts b/api/models/ts/message.ts index 8a61875..cda7065 100644 --- a/api/models/ts/message.ts +++ b/api/models/ts/message.ts @@ -86,4 +86,7 @@ export default class Message extends Model { @Column senderAlias: string // for tribes, no "sender" id maybe + + @Column + originalMuid: string // for tribe, remember the og muid } \ No newline at end of file diff --git a/api/network/modify.ts b/api/network/modify.ts index 25d5b80..9526826 100644 --- a/api/network/modify.ts +++ b/api/network/modify.ts @@ -49,7 +49,12 @@ export async function purchaseFromOriginalSender(payload, chat, purchaser){ meta:{...amount && {amt:amount}}, } // send full new key and token - const msg = {mediaTerms, mediaKey:mediaKey.key} + const msg = { + mediaTerms, + mediaKey:mediaKey.key, + originalMuid:mediaKey.originalMuid, + mediaType:mediaKey.mediaType + } console.log("SEND PURCHASE ACCEPT FROM STORED KEY") sendMessage({ chat: {...chat.dataValues, contactIds:[purchaser.id]}, @@ -64,18 +69,7 @@ export async function purchaseFromOriginalSender(payload, chat, purchaser){ const ogmsg = await models.Message.findOne({where:{chatId:chat.id,mediaToken:mt}}) // purchase it from creator (send "purchase") const msg={amount, mediaToken:mt} - console.log("GO AHEARD AND BUY!!! from:",ogmsg.sender,{ - chat: {...chat.dataValues, contactIds:[ogmsg.sender]}, - sender: { - ...owner.dataValues, - ...purchaser&&purchaser.alias && {alias:purchaser.alias} - }, - type: constants.message_types.purchase, - message: msg, - amount: amount, - success: ()=>{}, - failure: ()=>{} - }) + console.log("GO AHEARD AND BUY!!!") sendMessage({ chat: {...chat.dataValues, contactIds:[ogmsg.sender]}, sender: { @@ -131,6 +125,7 @@ export async function sendFinalMemeIfFirstPurchaser(payload, chat, sender){ message:{ ...termsAndKey, mediaType: typ, + originalMuid:muid, }, success: ()=>{}, receive: ()=>{} @@ -227,6 +222,7 @@ export async function downloadAndUploadAndSaveReturningTermsAndKey(payload, chat sender: sender.id, // the og sender createdAt: date, originalMuid: ogmuid, + mediaType:typ, }) return {mediaTerms,mediaKey:encKey} } catch(e) { diff --git a/api/utils/setup.ts b/api/utils/setup.ts index 6b71515..764d674 100644 --- a/api/utils/setup.ts +++ b/api/utils/setup.ts @@ -31,7 +31,9 @@ async function setVersion(){ } async function migrate(){ + addTableColumn('sphinx_media_keys', 'media_type') addTableColumn('sphinx_media_keys', 'original_muid') + addTableColumn('sphinx_messages', 'original_muid') addTableColumn('sphinx_messages', 'uuid') addTableColumn('sphinx_messages', 'reply_uuid') diff --git a/dist/api/controllers/media.js b/dist/api/controllers/media.js index 8332f55..4b68b33 100644 --- a/dist/api/controllers/media.js +++ b/dist/api/controllers/media.js @@ -95,7 +95,7 @@ const sendAttachmentMessage = (req, res) => __awaiter(void 0, void 0, void 0, fu createdAt: date, updatedAt: date }); - saveMediaKeys(muid, media_key_map, chat.id, message.id); + saveMediaKeys(muid, media_key_map, chat.id, message.id, mediaType); const mediaTerms = { muid, ttl: TTL, meta: Object.assign({}, amt && { amt }), @@ -122,7 +122,7 @@ const sendAttachmentMessage = (req, res) => __awaiter(void 0, void 0, void 0, fu }); }); exports.sendAttachmentMessage = sendAttachmentMessage; -function saveMediaKeys(muid, mediaKeyMap, chatId, messageId) { +function saveMediaKeys(muid, mediaKeyMap, chatId, messageId, mediaType) { if (typeof mediaKeyMap !== 'object') { console.log('wrong type for mediaKeyMap'); return; @@ -136,6 +136,7 @@ function saveMediaKeys(muid, mediaKeyMap, chatId, messageId) { muid, chatId, key, messageId, receiver: receiverID, createdAt: date, + mediaType }); } } @@ -303,7 +304,7 @@ const receivePurchaseAccept = (payload) => __awaiter(void 0, void 0, void 0, fun console.log('=> receivePurchaseAccept'); var date = new Date(); date.setMilliseconds(0); - const { owner, sender, chat, mediaToken, mediaKey, mediaType } = yield helpers.parseReceiveParams(payload); + const { owner, sender, chat, mediaToken, mediaKey, mediaType, originalMuid } = yield helpers.parseReceiveParams(payload); if (!owner || !sender || !chat) { return console.log('=> no group chat!'); } @@ -330,6 +331,7 @@ const receivePurchaseAccept = (payload) => __awaiter(void 0, void 0, void 0, fun mediaToken, mediaKey, mediaType, + originalMuid: originalMuid || '', date: date, createdAt: date, updatedAt: date diff --git a/dist/api/controllers/media.js.map b/dist/api/controllers/media.js.map index 645fc64..d8389ed 100644 --- a/dist/api/controllers/media.js.map +++ b/dist/api/controllers/media.js.map @@ -1 +1 @@ -{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../api/controllers/media.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vC,CAAC,CAAA;YACF,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAC5B,IAAG,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,EAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,CAAA;aAC5B;YACD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAC9B,OAAO,IAAI,CAAC,KAAK,CAAA;SAClB;QAAC,OAAM,CAAC,EAAE;YACT,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CAAA;AA2BC,sCAAa;AAzBf,SAAe,YAAY,CAAC,IAAI;;QAC9B,IAAI;YACF,MAAM,KAAK,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,CAAA;YACvC,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,QAAQ,GAAC,UAAU,GAAC,IAAI,EAAC;gBAChD,OAAO,EAAE;oBACP,eAAe,EAAE,UAAU,KAAK,EAAE;oBAClC,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAC,IAAI;aACV,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAM,CAAC,EAAE;YACT,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../api/controllers/media.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAgC;AAChC,0CAAyC;AACzC,2CAA0C;AAC1C,yCAAwC;AACxC,sCAAqC;AACrC,gCAAyC;AACzC,kDAA8D;AAC9D,sCAAqC;AACrC,kDAAkD;AAClD,wCAAqF;AACrF,+BAA4B;AAC5B,4CAA2C;AAC3C,qCAAoC;AACpC,mDAAgD;AAChD,6BAA4B;AAC5B,sCAAqC;AACrC,sCAAqC;AACrC,oCAAmC;AAEnC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,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IAAI,CAAC,KAAK,CAAA;SAClB;QAAC,OAAM,CAAC,EAAE;YACT,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CAAA;AA2BC,sCAAa;AAzBf,SAAe,YAAY,CAAC,IAAI;;QAC9B,IAAI;YACF,MAAM,KAAK,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,CAAA;YACvC,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,QAAQ,GAAC,UAAU,GAAC,IAAI,EAAC;gBAChD,OAAO,EAAE;oBACP,eAAe,EAAE,UAAU,KAAK,EAAE;oBAClC,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAC,IAAI;aACV,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAM,CAAC,EAAE;YACT,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/api/helpers.js b/dist/api/helpers.js index f47f079..78922ae 100644 --- a/dist/api/helpers.js +++ b/dist/api/helpers.js @@ -161,6 +161,7 @@ function parseReceiveParams(payload) { const content = dat.message.content; const remote_content = dat.message.remoteContent; const mediaToken = dat.message.mediaToken; + const originalMuid = dat.message.originalMuid; const msg_id = dat.message.id || 0; const msg_uuid = dat.message.uuid || ''; const mediaKey = dat.message.mediaKey; @@ -185,7 +186,7 @@ function parseReceiveParams(payload) { } chat = yield models_1.models.Chat.findOne({ where: { uuid: chat_uuid } }); } - return { owner, sender, chat, sender_pub_key, sender_alias, isTribeOwner, chat_uuid, amount, content, mediaToken, mediaKey, mediaType, chat_type, msg_id, chat_members, chat_name, chat_host, chat_key, remote_content, msg_uuid }; + return { owner, sender, chat, sender_pub_key, sender_alias, isTribeOwner, chat_uuid, amount, content, mediaToken, mediaKey, mediaType, originalMuid, chat_type, msg_id, chat_members, chat_name, chat_host, chat_key, remote_content, msg_uuid }; }); } exports.parseReceiveParams = parseReceiveParams; diff --git a/dist/api/helpers.js.map b/dist/api/helpers.js.map index e84e137..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E,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAA;IACjP,CAAC;CAAA;AAQA,gDAAkB;AAInB,SAAe,YAAY,CAAC,KAAK,EAAE,QAAQ;;QAC1C,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YAChD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;SAC7C;IACF,CAAC;CAAA;AAED,SAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM;IACtC,OAAO;QACN,IAAI,EAAE,IAAI;QACV,MAAM;YACL,6BAA6B;YAC7B,WAAW,EAAE,MAAM,CAAC,UAAU,IAC3B,MAAM,CAAC,KAAK,IAAI,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAC,CAExC;KACD,CAAA;AACF,CAAC"} \ No newline at end of file diff --git a/dist/api/models/ts/mediaKey.js b/dist/api/models/ts/mediaKey.js index a4139f4..5af7250 100644 --- a/dist/api/models/ts/mediaKey.js +++ b/dist/api/models/ts/mediaKey.js @@ -52,6 +52,10 @@ __decorate([ sequelize_typescript_1.Column, __metadata("design:type", Date) ], MediaKey.prototype, "createdAt", void 0); +__decorate([ + sequelize_typescript_1.Column, + __metadata("design:type", String) +], MediaKey.prototype, "mediaType", void 0); __decorate([ sequelize_typescript_1.Column(sequelize_typescript_1.DataType.BIGINT), __metadata("design:type", Number) diff --git a/dist/api/models/ts/mediaKey.js.map b/dist/api/models/ts/mediaKey.js.map index b1e8708..cadbb94 100644 --- a/dist/api/models/ts/mediaKey.js.map +++ b/dist/api/models/ts/mediaKey.js.map @@ -1 +1 @@ -{"version":3,"file":"mediaKey.js","sourceRoot":"","sources":["../../../../api/models/ts/mediaKey.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAEtE;;;;;;EAME;AAGF,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,4BAAe;CAkCpD,CAAA;AA1BC;IANC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,IAAI;QACZ,aAAa,EAAE,IAAI;KACpB,CAAC;;oCACQ;AAGV;IADC,6BAAM;;sCACK;AAGZ;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;wCACV;AAGd;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;0CACR;AAGhB;IADC,6BAAM;;qCACI;AAGX;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;2CACP;AAGjB;IADC,6BAAM;8BACI,IAAI;2CAAA;AAGf;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;wCACV;AAGd;IADC,6BAAM;;8CACa;AAhCD,QAAQ;IAD5B,4BAAK,CAAC,EAAC,SAAS,EAAE,mBAAmB,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GACtC,QAAQ,CAkC5B;kBAlCoB,QAAQ"} \ No newline at end of file +{"version":3,"file":"mediaKey.js","sourceRoot":"","sources":["../../../../api/models/ts/mediaKey.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAEtE;;;;;;EAME;AAGF,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,4BAAe;CAqCpD,CAAA;AA7BC;IANC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,IAAI;QACZ,aAAa,EAAE,IAAI;KACpB,CAAC;;oCACQ;AAGV;IADC,6BAAM;;sCACK;AAGZ;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;wCACV;AAGd;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;0CACR;AAGhB;IADC,6BAAM;;qCACI;AAGX;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;2CACP;AAGjB;IADC,6BAAM;8BACI,IAAI;2CAAA;AAGf;IADC,6BAAM;;2CACU;AAGjB;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;wCACV;AAGd;IADC,6BAAM;;8CACa;AAnCD,QAAQ;IAD5B,4BAAK,CAAC,EAAC,SAAS,EAAE,mBAAmB,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GACtC,QAAQ,CAqC5B;kBArCoB,QAAQ"} \ No newline at end of file diff --git a/dist/api/models/ts/message.js b/dist/api/models/ts/message.js index 00fa5b9..90e2eca 100644 --- a/dist/api/models/ts/message.js +++ b/dist/api/models/ts/message.js @@ -121,6 +121,10 @@ __decorate([ sequelize_typescript_1.Column, __metadata("design:type", String) ], Message.prototype, "senderAlias", void 0); +__decorate([ + sequelize_typescript_1.Column, + __metadata("design:type", String) +], Message.prototype, "originalMuid", void 0); Message = __decorate([ sequelize_typescript_1.Table({ tableName: 'sphinx_messages', underscored: true }) ], Message); diff --git a/dist/api/models/ts/message.js.map b/dist/api/models/ts/message.js.map index 850d379..ab0ff0b 100644 --- a/dist/api/models/ts/message.js.map +++ b/dist/api/models/ts/message.js.map @@ -1 +1 @@ -{"version":3,"file":"message.js","sourceRoot":"","sources":["../../../../api/models/ts/message.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAGtE,IAAqB,OAAO,GAA5B,MAAqB,OAAQ,SAAQ,4BAAc;CAqFlD,CAAA;AA7EC;IANC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,IAAI;QACZ,aAAa,EAAE,IAAI;KACpB,CAAC;;mCACQ;AAGV;IADC,6BAAM;;qCACK;AAGZ;IADC,6BAAM,CAAC,+BAAQ,CAAC,M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C,OAAO,CAqF3B;kBArFoB,OAAO"} \ No newline at end of file +{"version":3,"file":"message.js","sourceRoot":"","sources":["../../../../api/models/ts/message.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAGtE,IAAqB,OAAO,GAA5B,MAAqB,OAAQ,SAAQ,4BAAc;CAwFlD,CAAA;AAhFC;IANC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,IAAI;QACZ,aAAa,EAAE,IAAI;KACpB,CAAC;;mCACQ;AAGV;IADC,6BAAM;;qCACK;AAGZ;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;uCACV;AAGd;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;qCACZ;AAGZ;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;uCACV;AAGd;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;yCACR;AAGhB;IADC,6BAAM,CAAC,+BAAQ,CAAC,OAAO,CAAC;;uCACX;AAGd;IADC,6BAAM,CAAC,+BAAQ,CAAC,OAAO,CAAC;;2CACP;AAGlB;IADC,6BAAM;;4CACY;AAGnB;IADC,6BAAM,CAAC,+BAAQ,CAAC,IAAI,CAAC;;+CACA;AAGtB;IADC,6BAAM;8BACD,IAAI;qCAAA;AAGV;IADC,6BAAM;8BACS,IAAI;+CAAA;AAGpB;IADC,6BAAM,CAAC,+BAAQ,CAAC,IAAI,CAAC;;+CACA;AAGtB;IADC,6BAAM,CAAC,+BAAQ,CAAC,IAAI,CAAC;;qDACM;AAG5B;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;uCACV;AAGd;IADC,6BAAM,CAAC,+BAAQ,CAAC,IAAI,CAAC;;0CACL;AAGjB;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;yCACR;AAGhB;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;+CACF;AAGtB;IADC,6BAAM;;yCACS;AAGhB;IADC,6BAAM;;0CACU;AAGjB;IADC,6BAAM;;2CACW;AAOlB;IALC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,YAAY,EAAE,KAAK;QACnB,SAAS,EAAE,KAAK;KACjB,CAAC;;qCACW;AAGb;IADC,6BAAM;8BACI,IAAI;0CAAA;AAGf;IADC,6BAAM;8BACI,IAAI;0CAAA;AAGf;IADC,6BAAM;;4CACY;AAGnB;IADC,6BAAM;;6CACa;AAvFD,OAAO;IAD3B,4BAAK,CAAC,EAAC,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GACpC,OAAO,CAwF3B;kBAxFoB,OAAO"} \ No newline at end of file diff --git a/dist/api/network/modify.js b/dist/api/network/modify.js index 63dcd8e..87d1d53 100644 --- a/dist/api/network/modify.js +++ b/dist/api/network/modify.js @@ -61,7 +61,12 @@ function purchaseFromOriginalSender(payload, chat, purchaser) { meta: Object.assign({}, amount && { amt: amount }), }; // send full new key and token - const msg = { mediaTerms, mediaKey: mediaKey.key }; + const msg = { + mediaTerms, + mediaKey: mediaKey.key, + originalMuid: mediaKey.originalMuid, + mediaType: mediaKey.mediaType + }; console.log("SEND PURCHASE ACCEPT FROM STORED KEY"); send_1.sendMessage({ chat: Object.assign(Object.assign({}, chat.dataValues), { contactIds: [purchaser.id] }), @@ -77,15 +82,7 @@ function purchaseFromOriginalSender(payload, chat, purchaser) { const ogmsg = yield models_1.models.Message.findOne({ where: { chatId: chat.id, mediaToken: mt } }); // purchase it from creator (send "purchase") const msg = { amount, mediaToken: mt }; - console.log("GO AHEARD AND BUY!!! from:", ogmsg.sender, { - chat: Object.assign(Object.assign({}, chat.dataValues), { contactIds: [ogmsg.sender] }), - sender: Object.assign(Object.assign({}, owner.dataValues), purchaser && purchaser.alias && { alias: purchaser.alias }), - type: constants.message_types.purchase, - message: msg, - amount: amount, - success: () => { }, - failure: () => { } - }); + console.log("GO AHEARD AND BUY!!!"); send_1.sendMessage({ chat: Object.assign(Object.assign({}, chat.dataValues), { contactIds: [ogmsg.sender] }), sender: Object.assign(Object.assign({}, owner.dataValues), purchaser && purchaser.alias && { alias: purchaser.alias }), @@ -128,7 +125,7 @@ function sendFinalMemeIfFirstPurchaser(payload, chat, sender) { sender: Object.assign(Object.assign({}, owner.dataValues), sender && sender.alias && { alias: sender.alias }), chat: Object.assign(Object.assign({}, chat.dataValues), { contactIds: [ogPurchaseMessage.sender] }), type: msgtypes.purchase_accept, - message: Object.assign(Object.assign({}, termsAndKey), { mediaType: typ }), + message: Object.assign(Object.assign({}, termsAndKey), { mediaType: typ, originalMuid: muid }), success: () => { }, receive: () => { } }); @@ -208,6 +205,7 @@ function downloadAndUploadAndSaveReturningTermsAndKey(payload, chat, sender, inj sender: sender.id, createdAt: date, originalMuid: ogmuid, + mediaType: typ, }); return { mediaTerms, mediaKey: encKey }; } diff --git a/dist/api/network/modify.js.map b/dist/api/network/modify.js.map index f35765a..75baf54 100644 --- a/dist/api/network/modify.js.map +++ b/dist/api/network/modify.js.map @@ -1 +1 @@ -{"version":3,"file":"modify.js","sourceRoot":"","sources":["../../../api/network/modify.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,oCAAmC;AACnC,wCAAuC;AACvC,qCAAoC;AACpC,iCAAgC;AAChC,sCAAqC;AACrC,sCAAqC;AACrC,sCAAkC;AAClC,uCAAsC;AACtC,iCAAkC;AAClC,yCAA8B;AAE9B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAC,6BAA6B,CAAC,CAAC,CAAA;AAC7E,MAAM,QAAQ,GAAG,SAAS,CAAC,aAAa,CAAA;AAExC,SAAsB,4BAA4B,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM;;QACtE,IAAG,OAAO,CAAC,IAAI,KAAG,QAAQ,CAAC,UAAU;YAAE,OAAO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I;gBACd,MAAM,EAAC,IAAI,CAAC,EAAE;gBACd,GAAG,EAAC,MAAM;gBACV,SAAS,EAAE,CAAC,OAAO,CAAC,OAAO,IAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,IAAE,CAAC;gBACnD,QAAQ,EAAE,CAAC;gBACX,MAAM,EAAE,MAAM,CAAC,EAAE;gBACjB,SAAS,EAAE,IAAI;gBACf,YAAY,EAAE,MAAM;aACrB,CAAC,CAAA;YACF,OAAO,EAAC,UAAU,EAAC,QAAQ,EAAC,MAAM,EAAC,CAAA;SACpC;QAAC,OAAM,CAAC,EAAE;YACT,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CAAA;AAlFD,oGAkFC"} \ No newline at end of file +{"version":3,"file":"modify.js","sourceRoot":"","sources":["../../../api/network/modify.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,oCAAmC;AACnC,wCAAuC;AACvC,qCAAoC;AACpC,iCAAgC;AAChC,sCAAqC;AACrC,sCAAqC;AACrC,sCAAkC;AAClC,uCAAsC;AACtC,iCAAkC;AAClC,yCAA8B;AAE9B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAC,6BAA6B,CAAC,CAAC,CAAA;AAC7E,MAAM,QAAQ,GAAG,SAAS,CAAC,aAAa,CAAA;AAExC,SAAsB,4BAA4B,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM;;QACtE,IAAG,OAAO,CAAC,IAAI,KAAG,QAAQ,CAAC,UAAU;YAAE,OAAO,OAAO,CAAA;QACrD,IAAG;YACD,MAAM,GAAG,GAAG,MAAM,4CAA4C,CAAC,OAAO,EAAC,IAAI,EAAC,MAAM,CAAC,CAAA;YACnF,OAAO,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA,CAAC,4BAA4B;SAC1D;QAAC,OAAM,CAAC,EAAE;YACT,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,CA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AAI,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;YACzD,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;YAErB,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;YACvB,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAC;gBACrC,IAAI,EAAC,IAAI,CAAC,IAAI;gBACd,MAAM,EAAC,IAAI,CAAC,EAAE;gBACd,GAAG,EAAE,MAAM;gBACX,SAAS,EAAE,CAAC,OAAO,CAAC,OAAO,IAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,IAAE,CAAC;gBACnD,QAAQ,EAAE,CAAC;gBACX,MAAM,EAAE,MAAM,CAAC,EAAE;gBACjB,SAAS,EAAE,IAAI;aAChB,CAAC,CAAA;YACF,MAAM,KAAK,CAAC,CAAC,CAAC,CAAA;YACd,MAAM,eAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAC3B,IAAI,EAAC,IAAI,CAAC,IAAI;gBACd,MAAM,EAAC,IAAI,CAAC,EAAE;gBACd,GAAG,EAAC,MAAM;gBACV,SAAS,EAAE,CAAC,OAAO,CAAC,OAAO,IAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,IAAE,CAAC;gBACnD,QAAQ,EAAE,CAAC;gBACX,MAAM,EAAE,MAAM,CAAC,EAAE;gBACjB,SAAS,EAAE,IAAI;gBACf,YAAY,EAAE,MAAM;gBACpB,SAAS,EAAC,GAAG;aACd,CAAC,CAAA;YACF,OAAO,EAAC,UAAU,EAAC,QAAQ,EAAC,MAAM,EAAC,CAAA;SACpC;QAAC,OAAM,CAAC,EAAE;YACT,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CAAA;AAnFD,oGAmFC"} \ No newline at end of file diff --git a/dist/api/utils/setup.js b/dist/api/utils/setup.js index 0850c5a..ecaf8de 100644 --- a/dist/api/utils/setup.js +++ b/dist/api/utils/setup.js @@ -44,7 +44,9 @@ function setVersion() { } function migrate() { return __awaiter(this, void 0, void 0, function* () { + addTableColumn('sphinx_media_keys', 'media_type'); addTableColumn('sphinx_media_keys', 'original_muid'); + addTableColumn('sphinx_messages', 'original_muid'); addTableColumn('sphinx_messages', 'uuid'); addTableColumn('sphinx_messages', 'reply_uuid'); addTableColumn('sphinx_media_keys', 'sender', 'BIGINT'); diff --git a/dist/api/utils/setup.js.map b/dist/api/utils/setup.js.map index e0e09b1..effc9dc 100644 --- a/dist/api/utils/setup.js.map +++ b/dist/api/utils/setup.js.map @@ -1 +1 @@ -{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../api/utils/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAA2C;AAC3C,sCAA2C;AAC3C,iDAAoC;AACpC,iCAAgC;AAChC,sCAAqC;AACrC,gDAAwC;AACxC,8CAA0D;AAE1D,MAAM,YAAY,GAAG,CAAC,CAAA;AAEtB,MAAM,aAAa,GAAG,GAAS,EAAE;IAC/B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IACxC,MAAM,UAAU,EAAE,CAAA;IAClB,IAAI;QACF,MAAM,kBAAS,CAAC,IAAI,EAAE,CAAA;QACtB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;KACpC;IAAC,OAAM,CAAC,EAAE;QACT,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAC,CAAC,CAAC,CAAA;KAChC;IACD,MAAM,OAAO,EAAE,CAAA;IACf,iBAAiB,EAAE,CAAA;IACnB,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;AACnC,CAAC,CAAA,CAAA;AA+FQ,sCAAa;AA7FtB,SAAe,UAAU;;QACvB,IAAI;YACF,MAAM,kBAAS,CAAC,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAA;SAC/D;QAAC,OAAM,CAAC,EAAE;YACT,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAC,CAAC,CAAC,CAAA;SACtC;IACH,CAAC;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GAAG,CAAC,GAAG,CAAC,CAAA;QAChB,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAC,EAAC,IAAI,EAAC,UAAU,EAAC,EAAE,UAAU,GAAG,EAAE,GAAG;YACvD,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QAClB,CAAC,CAAC,CAAA;IACJ,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../api/utils/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAA2C;AAC3C,sCAA2C;AAC3C,iDAAoC;AACpC,iCAAgC;AAChC,sCAAqC;AACrC,gDAAwC;AACxC,8CAA0D;AAE1D,MAAM,YAAY,GAAG,CAAC,CAAA;AAEtB,MAAM,aAAa,GAAG,GAAS,EAAE;IAC/B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IACxC,MAAM,UAAU,EAAE,CAAA;IAClB,IAAI;QACF,MAAM,kBAAS,CAAC,IAAI,EAAE,CAAA;QACtB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;KACpC;IAAC,OAAM,CAAC,EAAE;QACT,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAC,CAAC,CAAC,CAAA;KAChC;IACD,MAAM,OAAO,EAAE,CAAA;IACf,iBAAiB,EAAE,CAAA;IACnB,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;AACnC,CAAC,CAAA,CAAA;AAiGQ,sCAAa;AA/FtB,SAAe,UAAU;;QACvB,IAAI;YACF,MAAM,kBAAS,CAAC,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAA;SAC/D;QAAC,OAAM,CAAC,EAAE;YACT,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAC,CAAC,CAAC,CAAA;SACtC;IACH,CAAC;CAAA;AAED,SAAe,OAAO;;QACpB,cAAc,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAA;QACjD,cAAc,CAAC,mBAAmB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