Browse Source

fix boost amount on tribe join replay

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
700c005693
  1. 2
      dist/src/controllers/chatTribes.js
  2. 2
      dist/src/controllers/chatTribes.js.map
  3. 1
      src/controllers/chatTribes.ts

2
dist/src/controllers/chatTribes.js

@ -478,7 +478,7 @@ function replayChatHistory(chat, contact) {
}
const isForwarded = m.sender !== 1;
const includeStatus = true;
let msg = network.newmsg(m.type, chat, sender, Object.assign(Object.assign(Object.assign(Object.assign({ content, uuid: m.uuid, replyUuid: m.replyUuid, status: m.status }, mediaKeyMap && { mediaKey: mediaKeyMap }), newMediaTerms && { mediaToken: newMediaTerms }), m.mediaType && { mediaType: m.mediaType }), dateString && { date: dateString }), isForwarded, includeStatus);
let msg = network.newmsg(m.type, chat, sender, Object.assign(Object.assign(Object.assign(Object.assign({ content, uuid: m.uuid, replyUuid: m.replyUuid, status: m.status, amount: m.amount }, mediaKeyMap && { mediaKey: mediaKeyMap }), newMediaTerms && { mediaToken: newMediaTerms }), m.mediaType && { mediaType: m.mediaType }), dateString && { date: dateString }), isForwarded, includeStatus);
console.log("=====> A MESSAGE TO SEND", msg);
msg = yield msg_1.decryptMessage(msg, chat);
const data = yield msg_1.personalizeMessage(msg, contact, true);

2
dist/src/controllers/chatTribes.js.map

File diff suppressed because one or more lines are too long

1
src/controllers/chatTribes.ts

@ -481,6 +481,7 @@ export async function replayChatHistory(chat, contact) {
uuid: m.uuid,
replyUuid: m.replyUuid,
status: m.status,
amount: m.amount,
...mediaKeyMap && {mediaKey: mediaKeyMap},
...newMediaTerms && {mediaToken: newMediaTerms},
...m.mediaType && {mediaType: m.mediaType},

Loading…
Cancel
Save