mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Fix unresolved authors of story replies.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user