Improve rendering of notifications
This commit is contained in:
parent
d7cd24b3d0
commit
e92fe45e3c
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class RoomGroupMessageCreator @Inject constructor(
|
||||||
userAvatarUrl: String?
|
userAvatarUrl: String?
|
||||||
): RoomNotification.Message {
|
): RoomNotification.Message {
|
||||||
val lastKnownRoomEvent = events.last()
|
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 roomIsGroup = !lastKnownRoomEvent.roomIsDirect
|
||||||
val style = NotificationCompat.MessagingStyle(
|
val style = NotificationCompat.MessagingStyle(
|
||||||
Person.Builder()
|
Person.Builder()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue