Browse Source
* Bump rust-sdk version to rust-sdk 0.2.57 * rust sdk update: Support persisted WedgeQueueError * Trust & Decoration | Support new expected UTD causes * Room Subscribtion settings not needed anymore (see https://github.com/matrix-org/matrix-rust-sdk/pull/4159) * File/Attachement upload: update to support `storeInCache` * feat(knock): update API to use reason and serverNames * Add another `Konsist` exception * Update screenshots --------- Co-authored-by: Jorge Martín <jorgem@element.io> Co-authored-by: ElementBot <android@element.io> Co-authored-by: Benoit Marty <benoit@matrix.org>pull/3740/head
Valere
6 days ago
committed by
GitHub
23 changed files with 223 additions and 58 deletions
@ -0,0 +1,69 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2024 New Vector Ltd. |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only |
||||||
|
* Please see LICENSE in the repository root for full details. |
||||||
|
*/ |
||||||
|
|
||||||
|
package io.element.android.features.messages.impl.timeline.components |
||||||
|
|
||||||
|
import androidx.compose.foundation.layout.Column |
||||||
|
import androidx.compose.runtime.Composable |
||||||
|
import io.element.android.features.messages.impl.timeline.aTimelineItemEvent |
||||||
|
import io.element.android.features.messages.impl.timeline.aTimelineItemReactions |
||||||
|
import io.element.android.features.messages.impl.timeline.model.TimelineItemGroupPosition |
||||||
|
import io.element.android.features.messages.impl.timeline.model.event.TimelineItemEncryptedContent |
||||||
|
import io.element.android.libraries.designsystem.preview.ElementPreview |
||||||
|
import io.element.android.libraries.designsystem.preview.PreviewsDayNight |
||||||
|
import io.element.android.libraries.matrix.api.timeline.item.event.UnableToDecryptContent |
||||||
|
import io.element.android.libraries.matrix.api.timeline.item.event.UtdCause |
||||||
|
|
||||||
|
@PreviewsDayNight |
||||||
|
@Composable |
||||||
|
internal fun TimelineItemEventRowUtdPreview() = ElementPreview { |
||||||
|
Column { |
||||||
|
ATimelineItemEventRow( |
||||||
|
event = aTimelineItemEvent( |
||||||
|
senderDisplayName = "Alice", |
||||||
|
isMine = false, |
||||||
|
content = TimelineItemEncryptedContent( |
||||||
|
data = UnableToDecryptContent.Data.MegolmV1AesSha2( |
||||||
|
sessionId = "sessionId", |
||||||
|
utdCause = UtdCause.UnsignedDevice, |
||||||
|
) |
||||||
|
), |
||||||
|
timelineItemReactions = aTimelineItemReactions(count = 0), |
||||||
|
groupPosition = TimelineItemGroupPosition.First, |
||||||
|
), |
||||||
|
) |
||||||
|
ATimelineItemEventRow( |
||||||
|
event = aTimelineItemEvent( |
||||||
|
senderDisplayName = "Bob", |
||||||
|
isMine = false, |
||||||
|
content = TimelineItemEncryptedContent( |
||||||
|
data = UnableToDecryptContent.Data.MegolmV1AesSha2( |
||||||
|
sessionId = "sessionId", |
||||||
|
utdCause = UtdCause.VerificationViolation, |
||||||
|
) |
||||||
|
), |
||||||
|
groupPosition = TimelineItemGroupPosition.First, |
||||||
|
timelineItemReactions = aTimelineItemReactions(count = 0) |
||||||
|
), |
||||||
|
) |
||||||
|
|
||||||
|
ATimelineItemEventRow( |
||||||
|
event = aTimelineItemEvent( |
||||||
|
senderDisplayName = "Bob", |
||||||
|
isMine = false, |
||||||
|
content = TimelineItemEncryptedContent( |
||||||
|
data = UnableToDecryptContent.Data.MegolmV1AesSha2( |
||||||
|
sessionId = "sessionId", |
||||||
|
utdCause = UtdCause.SentBeforeWeJoined, |
||||||
|
) |
||||||
|
), |
||||||
|
groupPosition = TimelineItemGroupPosition.Last, |
||||||
|
timelineItemReactions = aTimelineItemReactions(count = 0) |
||||||
|
), |
||||||
|
) |
||||||
|
} |
||||||
|
} |
@ -1,3 +1,3 @@ |
|||||||
version https://git-lfs.github.com/spec/v1 |
version https://git-lfs.github.com/spec/v1 |
||||||
oid sha256:fee2af8462597d58274b7168c5cfe1f6d6b0909b048adc0f4fc5b3c12a90b859 |
oid sha256:cfc3dc1420a58d25b5fd248f0b77c3c336bb03c402c904d0678c35a5abe291f2 |
||||||
size 8861 |
size 10753 |
||||||
|
@ -0,0 +1,3 @@ |
|||||||
|
version https://git-lfs.github.com/spec/v1 |
||||||
|
oid sha256:8beabd7aadf0324e9b66278c49fdd896b1451a805fd15e69aa6c4af37cb7c150 |
||||||
|
size 9055 |
@ -0,0 +1,3 @@ |
|||||||
|
version https://git-lfs.github.com/spec/v1 |
||||||
|
oid sha256:fee2af8462597d58274b7168c5cfe1f6d6b0909b048adc0f4fc5b3c12a90b859 |
||||||
|
size 8861 |
@ -1,3 +1,3 @@ |
|||||||
version https://git-lfs.github.com/spec/v1 |
version https://git-lfs.github.com/spec/v1 |
||||||
oid sha256:d4f48cd7dc7e2bbf7363d1127e46721c25bb8dd887927dbcffe525f5bb5bae01 |
oid sha256:d4d9879eda9ffa9c171c5351d9ef8e7b32cad50996717445c9b87cdad8a3d973 |
||||||
size 8781 |
size 10634 |
||||||
|
@ -0,0 +1,3 @@ |
|||||||
|
version https://git-lfs.github.com/spec/v1 |
||||||
|
oid sha256:077f898ad7822b6a5ff54429bc91e4faef377fb06de28a4cea73483e6adc5ffd |
||||||
|
size 9025 |
@ -0,0 +1,3 @@ |
|||||||
|
version https://git-lfs.github.com/spec/v1 |
||||||
|
oid sha256:d4f48cd7dc7e2bbf7363d1127e46721c25bb8dd887927dbcffe525f5bb5bae01 |
||||||
|
size 8781 |
Loading…
Reference in new issue