diff --git a/src/main/kotlin/tests/ChatItemStandardMessageWithQuoteTestCase.kt b/src/main/kotlin/tests/ChatItemStandardMessageWithQuoteTestCase.kt index d452366..eecace7 100644 --- a/src/main/kotlin/tests/ChatItemStandardMessageWithQuoteTestCase.kt +++ b/src/main/kotlin/tests/ChatItemStandardMessageWithQuoteTestCase.kt @@ -170,10 +170,10 @@ object ChatItemStandardMessageWithQuoteTestCase : TestCase("chat_item_standard_m private fun ChatItem.getQuoteText(): Text? { return when { - this.standardMessage != null -> { + this.standardMessage?.text != null -> { Text( - body = this.standardMessage.text?.body ?: "", - bodyRanges = this.standardMessage.text?.bodyRanges ?: emptyList() + body = this.standardMessage.text.body ?: "", + bodyRanges = this.standardMessage.text.bodyRanges ?: emptyList() ) } this.contactMessage != null -> { diff --git a/test-cases/chat_item_standard_message_with_quote_03.binproto b/test-cases/chat_item_standard_message_with_quote_03.binproto index 10e2b1b..2aae319 100644 Binary files a/test-cases/chat_item_standard_message_with_quote_03.binproto and b/test-cases/chat_item_standard_message_with_quote_03.binproto differ diff --git a/test-cases/chat_item_standard_message_with_quote_03.txtproto b/test-cases/chat_item_standard_message_with_quote_03.txtproto index a1893b8..0d29de0 100644 --- a/test-cases/chat_item_standard_message_with_quote_03.txtproto +++ b/test-cases/chat_item_standard_message_with_quote_03.txtproto @@ -163,9 +163,6 @@ Frame { quote = Quote { authorId = 4 targetSentTimestamp = 1 - text = Text { - body = "" - } type = Type.NORMAL } text = Text {