Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

allow only posting video (#5142)

authored by

Samuel Newman and committed by
GitHub
e8eaf2f4 c36c47d4

+9 -2
+9 -2
src/view/com/composer/Composer.tsx
··· 224 224 ) 225 225 226 226 const onPressCancel = useCallback(() => { 227 - if (graphemeLength > 0 || !gallery.isEmpty || extGif) { 227 + if ( 228 + graphemeLength > 0 || 229 + !gallery.isEmpty || 230 + extGif || 231 + videoUploadState.status !== 'idle' 232 + ) { 228 233 closeAllDialogs() 229 234 Keyboard.dismiss() 230 235 discardPromptControl.open() ··· 238 243 closeAllDialogs, 239 244 discardPromptControl, 240 245 onClose, 246 + videoUploadState.status, 241 247 ]) 242 248 243 249 useImperativeHandle(cancelRef, () => ({onPressCancel})) ··· 332 338 richtext.text.trim().length === 0 && 333 339 gallery.isEmpty && 334 340 !extLink && 335 - !quote 341 + !quote && 342 + videoUploadState.status === 'idle' 336 343 ) { 337 344 setError(_(msg`Did you want to say anything?`)) 338 345 return