Do not render filename of voice message.
This commit is contained in:
parent
7bcbd2181a
commit
533252a44e
2 changed files with 5 additions and 3 deletions
|
|
@ -95,7 +95,9 @@ class DefaultPinnedMessagesBannerFormatter @Inject constructor(
|
|||
messageType.bestDescription.prefixWith(CommonStrings.common_audio)
|
||||
}
|
||||
is VoiceMessageType -> {
|
||||
messageType.bestDescription.prefixWith(CommonStrings.common_voice_message)
|
||||
// In this case, do not use bestDescription, because the filename is useless, only use the caption if available.
|
||||
messageType.caption?.prefixWith(sp.getString(CommonStrings.common_voice_message))
|
||||
?: sp.getString(CommonStrings.common_voice_message)
|
||||
}
|
||||
is OtherMessageType -> {
|
||||
messageType.body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue