From b02539684a5f9f488c1697da48284954b8ce5736 Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Wed, 30 Mar 2022 12:47:00 -0400 Subject: [PATCH] Fix unresolved authors of story replies. --- .../stories/viewer/reply/group/StoryGroupReplyDataSource.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/stories/viewer/reply/group/StoryGroupReplyDataSource.kt b/app/src/main/java/org/thoughtcrime/securesms/stories/viewer/reply/group/StoryGroupReplyDataSource.kt index 4ff84cbf5b..b0762171ee 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/stories/viewer/reply/group/StoryGroupReplyDataSource.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/stories/viewer/reply/group/StoryGroupReplyDataSource.kt @@ -46,7 +46,7 @@ class StoryGroupReplyDataSource(private val parentStoryId: Long) : PagedDataSour private fun readReactionFromRecord(record: MmsMessageRecord): StoryGroupReplyItemData { return StoryGroupReplyItemData( key = StoryGroupReplyItemData.Key.Reaction(record.id), - sender = if (record.isOutgoing) Recipient.self() else record.individualRecipient, + sender = if (record.isOutgoing) Recipient.self() else record.individualRecipient.resolve(), sentAtMillis = record.dateSent, replyBody = StoryGroupReplyItemData.ReplyBody.Reaction(record.body) ) @@ -55,7 +55,7 @@ class StoryGroupReplyDataSource(private val parentStoryId: Long) : PagedDataSour private fun readTextFromRecord(record: MmsMessageRecord): StoryGroupReplyItemData { return StoryGroupReplyItemData( key = StoryGroupReplyItemData.Key.Text(record.id), - sender = if (record.isOutgoing) Recipient.self() else record.individualRecipient, + sender = if (record.isOutgoing) Recipient.self() else record.individualRecipient.resolve(), sentAtMillis = record.dateSent, replyBody = StoryGroupReplyItemData.ReplyBody.Text( ConversationMessage.ConversationMessageFactory.createWithUnresolvedData(ApplicationDependencies.getApplication(), record)