MessageContent.type cannot be null

This commit is contained in:
Benoit Marty 2023-10-11 16:12:20 +02:00 committed by Benoit Marty
parent 1b0e044565
commit 8c2a5f281b
3 changed files with 3 additions and 5 deletions

View file

@ -28,7 +28,7 @@ data class MessageContent(
val inReplyTo: InReplyTo?,
val isEdited: Boolean,
val isThreaded: Boolean,
val type: MessageType?
val type: MessageType
) : EventContent
data object RedactedContent : EventContent