File tree Expand file tree Collapse file tree
flipchatApp/src/main/kotlin/xyz/flipchat/app/features/chat/conversation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -949,6 +949,12 @@ class ConversationViewModel @Inject constructor(
949949 val members = event.conversationWithPointers.members
950950 val host = members.firstOrNull { it.isHost }
951951
952+ val cardTitle = if (conversation.title.startsWith(" Room" )) {
953+ " #${conversation.roomNumber} "
954+ } else {
955+ conversation.title
956+ }
957+
952958 state.copy(
953959 conversationId = conversation.id,
954960 imageUri = conversation.imageUri.orEmpty().takeIf { it.isNotEmpty() },
@@ -965,7 +971,7 @@ class ConversationViewModel @Inject constructor(
965971 roomInfoArgs = RoomInfoArgs (
966972 roomId = conversation.id,
967973 roomNumber = conversation.roomNumber,
968- roomTitle = conversation.title ,
974+ roomTitle = cardTitle ,
969975 ownerId = conversation.ownerId,
970976 hostName = host?.memberName,
971977 memberCount = members.count(),
You can’t perform that action at this time.
0 commit comments