Fix incorrect plural form in call tile (#34272)

This commit is contained in:
Florian Duros
2026-07-15 08:59:11 +00:00
committed by GitHub
parent 65149798ef
commit 19f7ea2f7d
2 changed files with 6 additions and 4 deletions
@@ -243,7 +243,10 @@
"title": "Call in progress" "title": "Call in progress"
}, },
"room": { "room": {
"join_count": "%(joinedCount)s joined", "join_count": {
"one": "%(count)s joined",
"other": "%(count)s joined"
},
"title": "Group call in progress" "title": "Group call in progress"
} }
}, },
@@ -81,13 +81,12 @@ export function RoomOngoingCallTileView(props: Props): React.ReactNode {
* the call was ignored (by clicking decline button on the toast). * the call was ignored (by clicking decline button on the toast).
*/ */
function CallJoinedOrIgnoredContent({ snapshot }: { snapshot: RoomOngoingCallTileViewSnapshot }): React.ReactNode { function CallJoinedOrIgnoredContent({ snapshot }: { snapshot: RoomOngoingCallTileViewSnapshot }): React.ReactNode {
const { facePileViewModel, totalParticipants } = snapshot; const { facePileViewModel, totalParticipants: count } = snapshot;
const { translate: _t } = useI18n(); const { translate: _t } = useI18n();
const joinedCount = totalParticipants;
return ( return (
<Flex className={styles.subContainer} gap="6px" align="center"> <Flex className={styles.subContainer} gap="6px" align="center">
<FacePileView classNames={commonStyles.facepile} vm={facePileViewModel} /> <FacePileView classNames={commonStyles.facepile} vm={facePileViewModel} />
{_t("timeline|call_tile|ongoing|room|join_count", { joinedCount })} {_t("timeline|call_tile|ongoing|room|join_count", { count })}
</Flex> </Flex>
); );
} }