[APP-2922] Fix cached starter pack navigation (#11531)
This commit is contained in:
committed by
Samuel Newman
parent
ce34ffa238
commit
faaa42426a
@@ -146,7 +146,10 @@ export function StarterPackScreenInner({
|
|||||||
const isValid =
|
const isValid =
|
||||||
starterPack &&
|
starterPack &&
|
||||||
(starterPack.list || starterPack?.creator?.did === currentAccount?.did) &&
|
(starterPack.list || starterPack?.creator?.did === currentAccount?.did) &&
|
||||||
bsky.matches(app.bsky.graph.defs.starterPackView, starterPack) &&
|
// Cards may precache a synthetic full view while navigating. Its list CID
|
||||||
|
// is intentionally empty until the server response replaces it, so use
|
||||||
|
// the trusted app-view discriminator here instead of strict validation.
|
||||||
|
bsky.isType(app.bsky.graph.defs.starterPackView, starterPack) &&
|
||||||
bsky.matches(app.bsky.graph.starterpack, starterPack.record)
|
bsky.matches(app.bsky.graph.starterpack, starterPack.record)
|
||||||
|
|
||||||
if (!did || !starterPack || !isValid || !moderationOpts) {
|
if (!did || !starterPack || !isValid || !moderationOpts) {
|
||||||
|
|||||||
Reference in New Issue
Block a user