Skip to content

Commit

Permalink
Fix test. getClearContent() return the decrypted content for encryp…
Browse files Browse the repository at this point in the history
…ted Event, and it is null in this case
  • Loading branch information
bmarty committed Feb 1, 2024
1 parent ec96f4e commit 7dc8c43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ValidDecryptedEventTest {
).toContent()
)

val unValidatedContent = mixedEvent.getClearContent().toModel<MessageTextContent>()
val unValidatedContent = mixedEvent.content.toModel<MessageTextContent>()
unValidatedContent?.body shouldBe "some message"

mixedEvent.toValidDecryptedEvent()?.clearContent?.toModel<MessageTextContent>() shouldBe null
Expand Down

0 comments on commit 7dc8c43

Please sign in to comment.