mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-27 13:13:43 +00:00
Fix fromRecipient on even more message backup types.
This commit is contained in:
committed by
Greyson Parrelli
parent
f128df7d95
commit
d922b48a3e
@@ -444,6 +444,9 @@ private fun BackupMessageRecord.toBasicChatItemBuilder(selfRecipientId: Recipien
|
||||
val fromRecipientId = when {
|
||||
direction == Direction.OUTGOING -> selfRecipientId.toLong()
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user