fix: display "X active members" for communities in convo header

pull/2547/head
Audric Ackermann 3 years ago
parent 5568337e5a
commit f2c8d8e027

@ -363,6 +363,7 @@
"recoveryPhraseEmpty": "Enter your recovery phrase",
"displayNameEmpty": "Please enter a display name",
"members": "$count$ members",
"activeMembers": "$count$ active members",
"join": "Join",
"joinOpenGroup": "Join Community",
"createGroup": "Create Group",

@ -305,7 +305,7 @@ const ConversationHeaderTitle = () => {
let memberCountText = '';
if (isGroup && memberCount > 0 && !isKickedFromGroup) {
const count = String(memberCount);
memberCountText = i18n('members', [count]);
memberCountText = isPublic ? i18n('activeMembers', [count]) : i18n('members', [count]);
}
const notificationSubtitle = notificationSetting

@ -16,6 +16,7 @@ export type LocalizerKeys =
| 'closedGroupInviteFailMessage'
| 'noContactsForGroup'
| 'faq'
| 'timerOption_2_weeks_abbreviated'
| 'linkVisitWarningMessage'
| 'messageRequestAcceptedOurs'
| 'anonymous'
@ -255,6 +256,7 @@ export type LocalizerKeys =
| 'audioPermissionNeeded'
| 'createGroup'
| 'add'
| 'timerOption_2_weeks'
| 'messageRequests'
| 'show'
| 'cannotMixImageAndNonImageAttachments'
@ -276,6 +278,7 @@ export type LocalizerKeys =
| 'joinACommunity'
| 'multipleJoinedTheGroup'
| 'messageRequestAcceptedOursNoName'
| 'activeMembers'
| 'databaseError'
| 'resend'
| 'copiedToClipboard'

Loading…
Cancel
Save