Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Await app view when handling blocks mutes for lists (#2151)

* Await app view when handling blocks mutes for lists

* Do it right this time

authored by

Eric Bailey and committed by
GitHub
1b8b1b2e 565979e7

+10
+10
src/state/queries/list.ts
··· 230 230 } else { 231 231 await getAgent().unmuteModList(uri) 232 232 } 233 + 234 + await whenAppViewReady(uri, (v: AppBskyGraphGetList.Response) => { 235 + return Boolean(v?.data.list.viewer?.muted) === mute 236 + }) 233 237 }, 234 238 onSuccess(data, variables) { 235 239 queryClient.invalidateQueries({ ··· 248 252 } else { 249 253 await getAgent().unblockModList(uri) 250 254 } 255 + 256 + await whenAppViewReady(uri, (v: AppBskyGraphGetList.Response) => { 257 + return block 258 + ? typeof v?.data.list.viewer?.blocked === 'string' 259 + : !v?.data.list.viewer?.blocked 260 + }) 251 261 }, 252 262 onSuccess(data, variables) { 253 263 queryClient.invalidateQueries({