1
Fork 0
mirror of https://github.com/Steffo99/twom.git synced 2024-11-25 09:34:25 +00:00

If possible, display the current partecipants count in RoomListItem

This commit is contained in:
Steffo 2024-01-21 15:47:49 +01:00
parent 6abfb78ad6
commit a80bfc9ded
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 4 additions and 4 deletions

View file

@ -94,10 +94,9 @@ fun RoomListItem(
} }
}, },
supportingContent = { supportingContent = {
// TODO: Display rsvpComment instead of alias val count = roomSummary.joinedMembersCount
val canonicalAlias = roomSummary.canonicalAlias if (count != null) {
if (canonicalAlias != null) { Text(stringResource(R.string.main_partecipants, count))
Text(canonicalAlias)
} }
}, },
) )

View file

@ -85,4 +85,5 @@
<string name="room_error_self_notfound">You have been removed from the room.</string> <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="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>
</resources> </resources>