Fix story reactions in 1:1 conversations
This commit is contained in:
parent
22036c652b
commit
8452a72847
2 changed files with 2 additions and 0 deletions
|
@ -172,6 +172,7 @@ export class Reactions extends Collection<ReactionModel> {
|
||||||
// if the reaction is targetted at a story.
|
// if the reaction is targetted at a story.
|
||||||
if (isStory(targetMessage)) {
|
if (isStory(targetMessage)) {
|
||||||
generatedMessage.set({
|
generatedMessage.set({
|
||||||
|
expireTimer: targetConversation.get('expireTimer'),
|
||||||
storyId: targetMessage.id,
|
storyId: targetMessage.id,
|
||||||
storyReaction: {
|
storyReaction: {
|
||||||
emoji: reaction.get('emoji'),
|
emoji: reaction.get('emoji'),
|
||||||
|
|
|
@ -3467,6 +3467,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
received_at: incrementMessageCounter(),
|
received_at: incrementMessageCounter(),
|
||||||
received_at_ms: newReaction.timestamp,
|
received_at_ms: newReaction.timestamp,
|
||||||
timestamp: newReaction.timestamp,
|
timestamp: newReaction.timestamp,
|
||||||
|
expireTimer: conversation.get('expireTimer'),
|
||||||
sendStateByConversationId: zipObject(
|
sendStateByConversationId: zipObject(
|
||||||
Object.keys(newReaction.isSentByConversationId || {}),
|
Object.keys(newReaction.isSentByConversationId || {}),
|
||||||
repeat({
|
repeat({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue