Fix test. `getClearContent()` return the decrypted content for encrypted Event, and it is null in this case

This commit is contained in:
Benoit Marty 2024-02-01 18:43:59 +01:00
parent ec96f4e0ae
commit 7dc8c436cf
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class ValidDecryptedEventTest {
).toContent() ).toContent()
) )
val unValidatedContent = mixedEvent.getClearContent().toModel<MessageTextContent>() val unValidatedContent = mixedEvent.content.toModel<MessageTextContent>()
unValidatedContent?.body shouldBe "some message" unValidatedContent?.body shouldBe "some message"
mixedEvent.toValidDecryptedEvent()?.clearContent?.toModel<MessageTextContent>() shouldBe null mixedEvent.toValidDecryptedEvent()?.clearContent?.toModel<MessageTextContent>() shouldBe null