kopia lustrzana https://github.com/ryukoposting/Signal-Android
Send actual quote author in story direct reply.
rodzic
631720f111
commit
3b17a41415
|
@ -1585,7 +1585,7 @@ public final class MessageContentProcessor {
|
||||||
parentStoryId = new ParentStoryId.GroupReply(storyMessageId.getId());
|
parentStoryId = new ParentStoryId.GroupReply(storyMessageId.getId());
|
||||||
} else if (groupStory || SignalDatabase.storySends().canReply(senderRecipient.getId(), storyContext.getSentTimestamp())) {
|
} else if (groupStory || SignalDatabase.storySends().canReply(senderRecipient.getId(), storyContext.getSentTimestamp())) {
|
||||||
parentStoryId = new ParentStoryId.DirectReply(storyMessageId.getId());
|
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());
|
expiresInMillis = TimeUnit.SECONDS.toMillis(message.getExpiresInSeconds());
|
||||||
} else {
|
} else {
|
||||||
warn(content.getTimestamp(), "Story has replies disabled. Dropping reply.");
|
warn(content.getTimestamp(), "Story has replies disabled. Dropping reply.");
|
||||||
|
|
|
@ -37,7 +37,6 @@ class StoryDirectReplyRepository(context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
val quoteAuthor: Recipient = when {
|
val quoteAuthor: Recipient = when {
|
||||||
groupDirectReplyRecipientId != null -> message.recipient
|
|
||||||
message.isOutgoing -> Recipient.self()
|
message.isOutgoing -> Recipient.self()
|
||||||
else -> message.individualRecipient
|
else -> message.individualRecipient
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue