From f4775464bc75eecb15f3b0ee6458f2da09fbc823 Mon Sep 17 00:00:00 2001 From: Mohamad Jaara Date: Tue, 18 Jul 2023 14:00:29 +0200 Subject: [PATCH] detekt --- .../com/wire/kalium/logic/data/message/MessageContent.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/MessageContent.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/MessageContent.kt index 3e12ce28c54..80effe1fc6a 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/MessageContent.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/MessageContent.kt @@ -174,8 +174,9 @@ sealed class MessageContent { val isSelected: Boolean ) } + /** - * Notifies the author of a [Composite] message that a user has + * Notifies the author of a [Composite] message that a user has * selected one of its buttons. * @see Composite * @see ButtonActionConfirmation @@ -183,14 +184,15 @@ sealed class MessageContent { data class ButtonAction( /** * The ID of the original composite message. - */ + */ val referencedMessageId: String, - + /** * ID of the button that was selected. */ val buttonId: String ) : Signaling() + /** * Message sent by the author of a [Composite] to * notify which button should be marked as selected. @@ -337,6 +339,7 @@ sealed interface MessagePreviewContent { sealed interface WithUser : MessagePreviewContent { val username: String? + data class Text(override val username: String?, val messageBody: String?) : WithUser data class Asset(override val username: String?, val type: AssetType) : WithUser