Remove hard-coded chat member limit (#10625)
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@
|
|||||||
"icons:optimize": "svgo -f ./assets/icons"
|
"icons:optimize": "svgo -f ./assets/icons"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@atproto/api": "0.20.5",
|
"@atproto/api": "0.20.6",
|
||||||
"@atproto/syntax": "0.6.1",
|
"@atproto/syntax": "0.6.1",
|
||||||
"@bitdrift/react-native": "^0.6.8",
|
"@bitdrift/react-native": "^0.6.8",
|
||||||
"@braintree/sanitize-url": "^6.0.2",
|
"@braintree/sanitize-url": "^6.0.2",
|
||||||
|
|||||||
Generated
+5
-5
@@ -242,8 +242,8 @@ importers:
|
|||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@atproto/api':
|
'@atproto/api':
|
||||||
specifier: 0.20.5
|
specifier: 0.20.6
|
||||||
version: 0.20.5
|
version: 0.20.6
|
||||||
'@atproto/syntax':
|
'@atproto/syntax':
|
||||||
specifier: 0.6.1
|
specifier: 0.6.1
|
||||||
version: 0.6.1
|
version: 0.6.1
|
||||||
@@ -877,8 +877,8 @@ packages:
|
|||||||
graphql:
|
graphql:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@atproto/api@0.20.5':
|
'@atproto/api@0.20.6':
|
||||||
resolution: {integrity: sha512-VqkRYKR9vRRk36NhtytJz5TPhNtR1hczCcfM+bWoOK6MBvWUT8HwelufrycFAIbFIH7n4ws+5UbnLYpTIBQZ6Q==}
|
resolution: {integrity: sha512-WnFPcUl+qZdXmt27+Tg93BDIvBt/WpXfLIiBzBTp3ms9aszM5hAsfc7G8KEsnsmnRvcm0xRfiKEjIt5FxTKdYg==}
|
||||||
engines: {node: '>=22'}
|
engines: {node: '>=22'}
|
||||||
|
|
||||||
'@atproto/common-web@0.5.0':
|
'@atproto/common-web@0.5.0':
|
||||||
@@ -9494,7 +9494,7 @@ snapshots:
|
|||||||
|
|
||||||
'@0no-co/graphql.web@1.2.0': {}
|
'@0no-co/graphql.web@1.2.0': {}
|
||||||
|
|
||||||
'@atproto/api@0.20.5':
|
'@atproto/api@0.20.6':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@atproto/common-web': 0.5.0
|
'@atproto/common-web': 0.5.0
|
||||||
'@atproto/lexicon': 0.7.1
|
'@atproto/lexicon': 0.7.1
|
||||||
|
|||||||
@@ -5,15 +5,16 @@ import {Trans, useLingui} from '@lingui/react/macro'
|
|||||||
import {atoms as a, useTheme} from '#/alf'
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
import {InlineLinkText} from '#/components/Link'
|
import {InlineLinkText} from '#/components/Link'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import {MEMBER_LIMIT} from './constants'
|
|
||||||
|
|
||||||
export function MembersAndRequests({
|
export function MembersAndRequests({
|
||||||
memberCount,
|
memberCount,
|
||||||
|
memberLimit,
|
||||||
requestCount,
|
requestCount,
|
||||||
hasMoreRequests,
|
hasMoreRequests,
|
||||||
isOwner,
|
isOwner,
|
||||||
}: {
|
}: {
|
||||||
memberCount: number
|
memberCount: number
|
||||||
|
memberLimit: number
|
||||||
requestCount: number
|
requestCount: number
|
||||||
hasMoreRequests: boolean
|
hasMoreRequests: boolean
|
||||||
isOwner: boolean
|
isOwner: boolean
|
||||||
@@ -31,7 +32,7 @@ export function MembersAndRequests({
|
|||||||
</Text>
|
</Text>
|
||||||
<Text style={[a.text_xs, a.font_medium, t.atoms.text_contrast_medium]}>
|
<Text style={[a.text_xs, a.font_medium, t.atoms.text_contrast_medium]}>
|
||||||
{l({
|
{l({
|
||||||
message: `${memberCount}/${MEMBER_LIMIT}`,
|
message: `${memberCount}/${memberLimit}`,
|
||||||
comment:
|
comment:
|
||||||
'The number of group chat members out of the total number of permitted users.',
|
'The number of group chat members out of the total number of permitted users.',
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
export const MEMBER_LIMIT = 50
|
|
||||||
@@ -246,6 +246,7 @@ function GroupSettings({
|
|||||||
return (
|
return (
|
||||||
<MembersAndRequests
|
<MembersAndRequests
|
||||||
memberCount={convo.details.memberCount}
|
memberCount={convo.details.memberCount}
|
||||||
|
memberLimit={convo.details.memberLimit}
|
||||||
requestCount={requestCount}
|
requestCount={requestCount}
|
||||||
hasMoreRequests={!!hasMoreRequests}
|
hasMoreRequests={!!hasMoreRequests}
|
||||||
isOwner={isOwner}
|
isOwner={isOwner}
|
||||||
|
|||||||
Reference in New Issue
Block a user