Fix fromRecipient on even more message backup types.

This commit is contained in:
Cody Henthorne 2025-01-23 14:08:10 -05:00 committed by Greyson Parrelli
parent f128df7d95
commit d922b48a3e

View file

@ -444,6 +444,9 @@ private fun BackupMessageRecord.toBasicChatItemBuilder(selfRecipientId: Recipien
val fromRecipientId = when { val fromRecipientId = when {
direction == Direction.OUTGOING -> selfRecipientId.toLong() direction == Direction.OUTGOING -> selfRecipientId.toLong()
record.type.isIdentityVerifyType() -> record.toRecipientId record.type.isIdentityVerifyType() -> record.toRecipientId
MessageTypes.isEndSessionType(record.type) && MessageTypes.isOutgoingMessageType(record.type) -> record.toRecipientId
MessageTypes.isExpirationTimerUpdate(record.type) && MessageTypes.isOutgoingMessageType(type) -> selfRecipientId.toLong()
MessageTypes.isOutgoingAudioCall(type) || MessageTypes.isOutgoingVideoCall(type) -> selfRecipientId.toLong()
else -> record.fromRecipientId else -> record.fromRecipientId
} }