Fix read group message rendering as pending after import.

This commit is contained in:
Cody Henthorne
2025-11-03 09:50:02 -05:00
committed by Michelle Tang
parent aed9b3afaa
commit 4b5c9723c1

View File

@@ -1469,7 +1469,11 @@ private fun List<GroupReceiptTable.GroupReceiptInfo>?.toRemoteSendStatus(message
)
}
it.status == GroupReceiptTable.STATUS_UNKNOWN -> {
statusBuilder.pending = SendStatus.Pending()
if (MessageTypes.isPendingMessageType(messageRecord.type)) {
statusBuilder.pending = SendStatus.Pending()
} else {
statusBuilder.skipped = SendStatus.Skipped()
}
}
it.status == GroupReceiptTable.STATUS_UNDELIVERED -> {
statusBuilder.sent = SendStatus.Sent(