Improve rendering of notifications

This commit is contained in:
Benoit Marty
2023-04-14 18:31:35 +02:00
parent aad55d6341
commit 96812209a3
@@ -44,7 +44,7 @@ class RoomGroupMessageCreator @Inject constructor(
userAvatarUrl: String?
): RoomNotification.Message {
val lastKnownRoomEvent = events.last()
val roomName = lastKnownRoomEvent.roomName ?: lastKnownRoomEvent.senderName ?: ""
val roomName = lastKnownRoomEvent.roomName ?: lastKnownRoomEvent.senderName ?: "Room name (${roomId.value.take(8)}…)"
val roomIsGroup = !lastKnownRoomEvent.roomIsDirect
val style = NotificationCompat.MessagingStyle(
Person.Builder()