Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow unmuting and unblocking of curate lists, but not the opposite (#3817)

authored by

Eric Bailey and committed by
GitHub
c2062753 cc9727a8

+9 -15
+9 -15
src/view/screens/ProfileList.tsx
··· 454 454 }, 455 455 }) 456 456 } 457 - if (isCurateList) { 457 + if (isCurateList && (isBlocking || isMuting)) { 458 458 items.push({label: 'separator'}) 459 459 460 - if (!isBlocking) { 460 + if (isMuting) { 461 461 items.push({ 462 462 testID: 'listHeaderDropdownMuteBtn', 463 - label: isMuting ? _(msg`Un-mute list`) : _(msg`Mute list`), 464 - onPress: isMuting 465 - ? onUnsubscribeMute 466 - : subscribeMutePromptControl.open, 463 + label: _(msg`Un-mute list`), 464 + onPress: onUnsubscribeMute, 467 465 icon: { 468 466 ios: { 469 - name: isMuting ? 'eye' : 'eye.slash', 467 + name: 'eye', 470 468 }, 471 469 android: '', 472 - web: isMuting ? 'eye' : ['far', 'eye-slash'], 470 + web: 'eye', 473 471 }, 474 472 }) 475 473 } 476 474 477 - if (!isMuting) { 475 + if (isBlocking) { 478 476 items.push({ 479 477 testID: 'listHeaderDropdownBlockBtn', 480 - label: isBlocking ? _(msg`Un-block list`) : _(msg`Block list`), 481 - onPress: isBlocking 482 - ? onUnsubscribeBlock 483 - : subscribeBlockPromptControl.open, 478 + label: _(msg`Un-block list`), 479 + onPress: onUnsubscribeBlock, 484 480 icon: { 485 481 ios: { 486 482 name: 'person.fill.xmark', ··· 508 504 isBlocking, 509 505 isMuting, 510 506 onUnsubscribeMute, 511 - subscribeMutePromptControl.open, 512 507 onUnsubscribeBlock, 513 - subscribeBlockPromptControl.open, 514 508 ]) 515 509 516 510 const subscribeDropdownItems: DropdownItem[] = useMemo(() => {