mirror of
https://github.com/Steffo99/twom.git
synced 2024-11-21 23:54:26 +00:00
If possible, display the current partecipants count in RoomListItem
This commit is contained in:
parent
6abfb78ad6
commit
a80bfc9ded
2 changed files with 4 additions and 4 deletions
|
@ -94,10 +94,9 @@ fun RoomListItem(
|
|||
}
|
||||
},
|
||||
supportingContent = {
|
||||
// TODO: Display rsvpComment instead of alias
|
||||
val canonicalAlias = roomSummary.canonicalAlias
|
||||
if (canonicalAlias != null) {
|
||||
Text(canonicalAlias)
|
||||
val count = roomSummary.joinedMembersCount
|
||||
if (count != null) {
|
||||
Text(stringResource(R.string.main_partecipants, count))
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
|
@ -85,4 +85,5 @@
|
|||
<string name="room_error_self_notfound">You have been removed from the room.</string>
|
||||
<string name="room_error_invite_generic">Something went wrong while sending the invite: %1$s</string>
|
||||
<string name="edit_title">Editing %1$s</string>
|
||||
<string name="main_partecipants">%1$d partecipants</string>
|
||||
</resources>
|
Loading…
Reference in a new issue