Show "Voice message" in voice message push notifications (#1705)

Don't show the event body anymore as it's not relevant for voice messages.
This commit is contained in:
Marco Romano 2023-10-31 15:27:17 +01:00 committed by GitHub
parent 95a2152714
commit c377656354
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,7 +211,7 @@ class NotifiableEventResolver @Inject constructor(
): String {
return when (val messageType = content.messageType) {
is AudioMessageType -> messageType.body
is VoiceMessageType -> messageType.body
is VoiceMessageType -> stringProvider.getString(CommonStrings.common_voice_message)
is EmoteMessageType -> "* $senderDisplayName ${messageType.body}"
is FileMessageType -> messageType.body
is ImageMessageType -> messageType.body