Render body for m.room.message if msgtype is unknown, in timeline and as room list last message. #1539

This commit is contained in:
Benoit Marty 2023-10-11 16:18:24 +02:00
parent 8c2a5f281b
commit bcefbb9861
2 changed files with 8 additions and 3 deletions

View file

@ -130,7 +130,8 @@ class DefaultRoomLastMessageFormatter @Inject constructor(
sp.getString(CommonStrings.common_audio)
}
UnknownMessageType -> {
sp.getString(CommonStrings.common_unsupported_event)
// Display the body as a fallback
messageContent.body
}
is NoticeMessageType -> {
messageType.body