Fix room name of DM in room creation item
This commit is contained in:
parent
bd3e98078c
commit
f8a3f7ffac
|
@ -0,0 +1 @@
|
|||
Use member name instead of room name in DM creation item
|
|
@ -133,7 +133,10 @@ abstract class MergedRoomCreationItem : BasedMergedItem<MergedRoomCreationItem.H
|
|||
val membersCount = roomSummary?.otherMemberIds?.size ?: 0
|
||||
|
||||
if (isDirect) {
|
||||
holder.roomDescriptionText.text = holder.view.resources.getString(R.string.this_is_the_beginning_of_dm, roomSummary?.displayName ?: "")
|
||||
holder.roomDescriptionText.text = holder.view.resources.getString(
|
||||
R.string.this_is_the_beginning_of_dm,
|
||||
distinctMergeData.lastOrNull()?.memberName ?: ""
|
||||
)
|
||||
} else if (roomDisplayName.isNullOrBlank() || roomSummary.name.isBlank()) {
|
||||
holder.roomDescriptionText.text = holder.view.resources.getString(R.string.this_is_the_beginning_of_room_no_name)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue