Reaction Send: Include current conversation timer

This commit is contained in:
Scott Nonnenberg 2020-03-24 13:25:43 -07:00
parent 17f212ffcf
commit 2852b0b92c

View file

@ -1037,6 +1037,8 @@
async sendReactionMessage(reaction, target) { async sendReactionMessage(reaction, target) {
const timestamp = Date.now(); const timestamp = Date.now();
const outgoingReaction = { ...reaction, ...target }; const outgoingReaction = { ...reaction, ...target };
const expireTimer = this.get('expireTimer');
const reactionModel = Whisper.Reactions.add({ const reactionModel = Whisper.Reactions.add({
...outgoingReaction, ...outgoingReaction,
fromId: fromId:
@ -1099,7 +1101,7 @@
null, null,
outgoingReaction, outgoingReaction,
timestamp, timestamp,
null, expireTimer,
profileKey profileKey
); );
return message.sendSyncMessageOnly(dataMessage); return message.sendSyncMessageOnly(dataMessage);
@ -1118,7 +1120,7 @@
null, null,
outgoingReaction, outgoingReaction,
timestamp, timestamp,
null, expireTimer,
profileKey, profileKey,
options options
); );
@ -1134,7 +1136,7 @@
null, null,
outgoingReaction, outgoingReaction,
timestamp, timestamp,
null, expireTimer,
profileKey, profileKey,
options options
); );