Remove unused code for unsupported 'invited' status (#10492)
This commit is contained in:
@@ -32,7 +32,7 @@ export function Member({
|
|||||||
}: {
|
}: {
|
||||||
convo: ConvoWithDetails
|
convo: ConvoWithDetails
|
||||||
profile: GroupConvoMember
|
profile: GroupConvoMember
|
||||||
status: 'owner' | 'standard' | 'invited'
|
status: 'owner' | 'standard'
|
||||||
isOwner: boolean
|
isOwner: boolean
|
||||||
}) {
|
}) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ type Item =
|
|||||||
type: 'CHAT_MEMBER'
|
type: 'CHAT_MEMBER'
|
||||||
key: string
|
key: string
|
||||||
profile: GroupConvoMember
|
profile: GroupConvoMember
|
||||||
status: 'owner' | 'standard' | 'invited'
|
status: 'owner' | 'standard'
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
type: 'CHAT_MEMBER_PLACEHOLDER'
|
type: 'CHAT_MEMBER_PLACEHOLDER'
|
||||||
@@ -189,9 +189,6 @@ function GroupSettings({
|
|||||||
placeholderData: convo.members,
|
placeholderData: convo.members,
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO Need this data in order to populate this array. -dsb
|
|
||||||
const invites: string[] = []
|
|
||||||
|
|
||||||
const {data: joinRequestsData, hasNextPage: hasMoreRequests} =
|
const {data: joinRequestsData, hasNextPage: hasMoreRequests} =
|
||||||
useListJoinRequestsQuery({
|
useListJoinRequestsQuery({
|
||||||
convoId: convo.view.id,
|
convoId: convo.view.id,
|
||||||
@@ -228,12 +225,7 @@ function GroupSettings({
|
|||||||
type: 'CHAT_MEMBER',
|
type: 'CHAT_MEMBER',
|
||||||
key: profile.did,
|
key: profile.did,
|
||||||
profile,
|
profile,
|
||||||
status:
|
status: primaryMember?.did === profile.did ? 'owner' : 'standard',
|
||||||
primaryMember?.did === profile.did
|
|
||||||
? 'owner'
|
|
||||||
: invites.includes(profile.did)
|
|
||||||
? 'invited'
|
|
||||||
: 'standard',
|
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user