Send actual quote author in story direct reply.

This commit is contained in:
Alex Hart 2022-04-19 10:18:01 -03:00
parent 631720f111
commit 3b17a41415
2 changed files with 1 additions and 2 deletions

View file

@ -1585,7 +1585,7 @@ public final class MessageContentProcessor {
parentStoryId = new ParentStoryId.GroupReply(storyMessageId.getId());
} else if (groupStory || SignalDatabase.storySends().canReply(senderRecipient.getId(), storyContext.getSentTimestamp())) {
parentStoryId = new ParentStoryId.DirectReply(storyMessageId.getId());
quoteModel = new QuoteModel(storyContext.getSentTimestamp(), groupStory ? threadRecipient.getId() : storyAuthorRecipient, "", false, story.getSlideDeck().asAttachments(), Collections.emptyList());
quoteModel = new QuoteModel(storyContext.getSentTimestamp(), storyAuthorRecipient, "", false, story.getSlideDeck().asAttachments(), Collections.emptyList());
expiresInMillis = TimeUnit.SECONDS.toMillis(message.getExpiresInSeconds());
} else {
warn(content.getTimestamp(), "Story has replies disabled. Dropping reply.");

View file

@ -37,7 +37,6 @@ class StoryDirectReplyRepository(context: Context) {
}
val quoteAuthor: Recipient = when {
groupDirectReplyRecipientId != null -> message.recipient
message.isOutgoing -> Recipient.self()
else -> message.individualRecipient
}