Skip to content

Commit

Permalink
Fix quote text for voice message
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Oct 1, 2024
1 parent 128ecea commit 996daf6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down
Binary file modified test-cases/chat_item_standard_message_with_quote_03.binproto
Binary file not shown.
3 changes: 0 additions & 3 deletions test-cases/chat_item_standard_message_with_quote_03.txtproto
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ Frame {
quote = Quote {
authorId = 4
targetSentTimestamp = 1
text = Text {
body = ""
}
type = Type.NORMAL
}
text = Text {
Expand Down

0 comments on commit 996daf6

Please sign in to comment.