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
a80bfc9ded
commit
455b80857d
2 changed files with 6 additions and 1 deletions
|
@ -96,7 +96,11 @@ fun RoomListItem(
|
||||||
supportingContent = {
|
supportingContent = {
|
||||||
val count = roomSummary.joinedMembersCount
|
val count = roomSummary.joinedMembersCount
|
||||||
if (count != null) {
|
if (count != null) {
|
||||||
|
if (count != 1) {
|
||||||
Text(stringResource(R.string.main_partecipants, count))
|
Text(stringResource(R.string.main_partecipants, count))
|
||||||
|
} else {
|
||||||
|
Text(stringResource(R.string.main_partecipant, count))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -86,4 +86,5 @@
|
||||||
<string name="room_error_invite_generic">Something went wrong while sending the invite: %1$s</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="edit_title">Editing %1$s</string>
|
||||||
<string name="main_partecipants">%1$d partecipants</string>
|
<string name="main_partecipants">%1$d partecipants</string>
|
||||||
|
<string name="main_partecipant">%1$d partecipant</string>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue