Fix fromRecipient on even more message backup types.
This commit is contained in:
parent
f128df7d95
commit
d922b48a3e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue