Clearer code.
This commit is contained in:
parent
8a532769e3
commit
f65025f841
1 changed files with 2 additions and 2 deletions
|
|
@ -36,8 +36,8 @@ fun TimelineItemEncryptedView(
|
|||
onContentLayoutChanged: (ContentAvoidingLayoutData) -> Unit,
|
||||
modifier: Modifier = Modifier
|
||||
) {
|
||||
val (textId, iconId) = if (content.data is UnableToDecryptContent.Data.MegolmV1AesSha2 &&
|
||||
content.data.utdCause == UtdCause.Membership) {
|
||||
val isMembershipUtd = (content.data as? UnableToDecryptContent.Data.MegolmV1AesSha2)?.utdCause == UtdCause.Membership
|
||||
val (textId, iconId) = if (isMembershipUtd) {
|
||||
(CommonStrings.common_unable_to_decrypt_no_access to CompoundDrawables.ic_compound_block)
|
||||
} else {
|
||||
(CommonStrings.common_waiting_for_decryption_key to CompoundDrawables.ic_compound_time)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue