Set correct fromId on reactions in all circumstances
This commit is contained in:
parent
2906ff0ce4
commit
109c40e055
1 changed files with 3 additions and 2 deletions
|
@ -2086,7 +2086,7 @@
|
||||||
targetAuthorUuid: reaction.targetAuthorUuid,
|
targetAuthorUuid: reaction.targetAuthorUuid,
|
||||||
targetTimestamp: reaction.targetTimestamp.toNumber(),
|
targetTimestamp: reaction.targetTimestamp.toNumber(),
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
fromId: messageDescriptor.id,
|
fromId: data.source,
|
||||||
});
|
});
|
||||||
// Note: We do not wait for completion here
|
// Note: We do not wait for completion here
|
||||||
Whisper.Reactions.onReaction(reactionModel);
|
Whisper.Reactions.onReaction(reactionModel);
|
||||||
|
@ -2214,6 +2214,7 @@
|
||||||
event.confirm();
|
event.confirm();
|
||||||
} else if (data.message.reaction) {
|
} else if (data.message.reaction) {
|
||||||
const { reaction } = data.message;
|
const { reaction } = data.message;
|
||||||
|
const ourNumber = textsecure.storage.user.getNumber();
|
||||||
const reactionModel = Whisper.Reactions.add({
|
const reactionModel = Whisper.Reactions.add({
|
||||||
emoji: reaction.emoji,
|
emoji: reaction.emoji,
|
||||||
remove: reaction.remove,
|
remove: reaction.remove,
|
||||||
|
@ -2221,7 +2222,7 @@
|
||||||
targetAuthorUuid: reaction.targetAuthorUuid,
|
targetAuthorUuid: reaction.targetAuthorUuid,
|
||||||
targetTimestamp: reaction.targetTimestamp.toNumber(),
|
targetTimestamp: reaction.targetTimestamp.toNumber(),
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
fromId: messageDescriptor.id,
|
fromId: ourNumber,
|
||||||
});
|
});
|
||||||
// Note: We do not wait for completion here
|
// Note: We do not wait for completion here
|
||||||
Whisper.Reactions.onReaction(reactionModel);
|
Whisper.Reactions.onReaction(reactionModel);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue