diff --git a/app/src/main/java/eu/steffo/twom/composables/main/RoomListItem.kt b/app/src/main/java/eu/steffo/twom/composables/main/RoomListItem.kt
index b8df074..47ce9a6 100644
--- a/app/src/main/java/eu/steffo/twom/composables/main/RoomListItem.kt
+++ b/app/src/main/java/eu/steffo/twom/composables/main/RoomListItem.kt
@@ -96,7 +96,11 @@ fun RoomListItem(
supportingContent = {
val count = roomSummary.joinedMembersCount
if (count != null) {
- Text(stringResource(R.string.main_partecipants, count))
+ if (count != 1) {
+ Text(stringResource(R.string.main_partecipants, count))
+ } else {
+ Text(stringResource(R.string.main_partecipant, count))
+ }
}
},
)
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c587292..582608e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -86,4 +86,5 @@
Something went wrong while sending the invite: %1$s
Editing %1$s
%1$d partecipants
+ %1$d partecipant
\ No newline at end of file