Fix Rescind request button (#10869)
This commit is contained in:
@@ -271,9 +271,10 @@ function GroupChatJoinDialogContent({code}: {code?: string}) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const convoId = joinLinkPreview.convo?.id
|
const convoId = joinLinkPreview.convoId
|
||||||
const isFollowing = joinLinkPreview.owner.viewer?.following ?? false
|
const isFollowing = joinLinkPreview.owner.viewer?.following ?? false
|
||||||
const hasRequested = !convoId && joinLinkPreview.viewer?.requestedAt != null
|
const hasRequested =
|
||||||
|
!joinLinkPreview.convo && joinLinkPreview.viewer?.requestedAt != null
|
||||||
|
|
||||||
let canJoin = true
|
let canJoin = true
|
||||||
let ButtonIconImage = isJoinPending || isWithdrawPending ? Loader : JoinIcon
|
let ButtonIconImage = isJoinPending || isWithdrawPending ? Loader : JoinIcon
|
||||||
@@ -417,7 +418,7 @@ function GroupChatJoinDialogContent({code}: {code?: string}) {
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
{convoId ? (
|
{joinLinkPreview.convo ? (
|
||||||
<Button
|
<Button
|
||||||
testID="openButton"
|
testID="openButton"
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user