Bluesky app fork with some witchin' additions ๐Ÿ’ซ witchsky.app
bluesky fork client

add video volume to persisted state #70

merged opened by bas.sh targeting main from bas.sh/witchsky.app: persist-volume
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:c52wep6lj4sfbsqiz3yvb55h/sh.tangled.repo.pull/3mgbhv74tzn22
+6 -3
Diff #0
+5 -3
src/components/Post/Embed/VideoEmbed/VideoVolumeContext.tsx
··· 1 1 import React from 'react' 2 2 3 + import {device, useStorage} from '#/storage' 4 + 3 5 const Context = React.createContext<{ 4 6 // native 5 7 muted: boolean 6 - setMuted: React.Dispatch<React.SetStateAction<boolean>> 8 + setMuted: (v: boolean) => void 7 9 // web 8 10 volume: number 9 - setVolume: React.Dispatch<React.SetStateAction<number>> 11 + setVolume: (v: number) => void 10 12 } | null>(null) 11 13 Context.displayName = 'VideoVolumeContext' 12 14 13 15 export function Provider({children}: {children: React.ReactNode}) { 14 16 const [muted, setMuted] = React.useState(true) 15 - const [volume, setVolume] = React.useState(1) 17 + const [volume = 1, setVolume] = useStorage(device, ['videoVolume']) 16 18 17 19 const value = React.useMemo( 18 20 () => ({
+1
src/storage/schema.ts
··· 69 69 */ 70 70 policyUpdateDebugOverride?: boolean 71 71 [PolicyUpdate202508]?: boolean 72 + videoVolume: number 72 73 } 73 74 74 75 export type Account = {

History

1 round 4 comments
sign up or login to add to the discussion
bas.sh submitted #0
1 commit
expand
add video volume to persisted state
expand 4 comments

oops I accidentally overwrote your commit. manually remaking it now ๐Ÿ˜ญ

my git cred nooo /s

there was another way you could've redone it by adding my fork as an upstream and manually merging it again but it's ok lol

also check out jj it's pretty cool and i will get everyone to use it

also damn bro is just force pushing to main like that kinda wild

pull request successfully merged