Fix the room summary and reply view for voice messages (#1856)

This commit is contained in:
Nicolas Mauri
2023-10-05 11:22:16 +02:00
committed by GitHub
parent 82abd0aaf3
commit 3ff983a48b
11 changed files with 66 additions and 19 deletions
@@ -31,8 +31,9 @@ struct RoomMessageEventStringBuilder {
return AttributedString(L10n.commonEmote(senderDisplayName, content.body))
}
// Message types that should be prefixed with the sender's name.
case .audio:
message = L10n.commonAudio
case .audio(content: let content):
let isVoiceMessage = content.voice != nil
message = isVoiceMessage ? L10n.commonVoiceMessage : L10n.commonAudio
case .image:
message = L10n.commonImage
case .video: