Skip to content

Commit

Permalink
fix: breaking changes from kalium (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara authored Mar 11, 2024
1 parent 611e574 commit 2394e27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import com.wire.android.ui.theme.wireTypography
import com.wire.android.util.ui.PreviewMultipleThemes
import com.wire.kalium.logic.feature.e2ei.CertificateStatus
import com.wire.kalium.logic.feature.e2ei.E2eiCertificate
import kotlinx.datetime.Instant

@Composable
fun EndToEndIdentityCertificateItem(
Expand Down Expand Up @@ -200,7 +201,8 @@ fun PreviewEndToEndIdentityCertificateItem() {
certificate = E2eiCertificate(
status = CertificateStatus.VALID,
serialNumber = "e5:d5:e6:75:7e:04:86:07:14:3c:a0:ed:9a:8d:e4:fd",
certificateDetail = ""
certificateDetail = "",
endAt = Instant.DISTANT_FUTURE
),
isLoadingCertificate = false,
enrollE2eiCertificate = {},
Expand All @@ -217,7 +219,8 @@ fun PreviewEndToEndIdentityCertificateSelfItem() {
certificate = E2eiCertificate(
status = CertificateStatus.VALID,
serialNumber = "e5:d5:e6:75:7e:04:86:07:14:3c:a0:ed:9a:8d:e4:fd",
certificateDetail = ""
certificateDetail = "",
endAt = Instant.DISTANT_FUTURE
),
isLoadingCertificate = false,
enrollE2eiCertificate = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import com.wire.android.ui.authentication.devices.remove.RemoveDeviceDialogState
import com.wire.android.ui.authentication.devices.remove.RemoveDeviceError
import com.wire.kalium.logic.feature.e2ei.CertificateStatus
import com.wire.kalium.logic.feature.e2ei.E2eiCertificate
import kotlinx.datetime.Instant

data class DeviceDetailsState(
val device: Device = Device(),
Expand All @@ -35,7 +36,8 @@ data class DeviceDetailsState(
val e2eiCertificate: E2eiCertificate = E2eiCertificate(
status = CertificateStatus.EXPIRED,
serialNumber = "",
certificateDetail = ""
certificateDetail = "",
endAt = Instant.DISTANT_FUTURE
),
val canBeRemoved: Boolean = false,
val isLoadingCertificate: Boolean = false,
Expand Down

0 comments on commit 2394e27

Please sign in to comment.