Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Give a meaningful error in the composer when replying to a deleted post (#4464)

authored by

Paul Frazee and committed by
GitHub
c2d7d234 0404111f

+10 -3
+10 -3
src/view/com/composer/Composer.tsx
··· 305 305 localThumb: undefined, 306 306 } as apilib.ExternalEmbedDraft) 307 307 } 308 - setError(cleanError(e.message)) 308 + let err = cleanError(e.message) 309 + if (err.includes('not locate record')) { 310 + err = _( 311 + msg`We're sorry! The post you are replying to has been deleted.`, 312 + ) 313 + } 314 + setError(err) 309 315 setIsProcessing(false) 310 316 return 311 317 } finally { ··· 785 791 }, 786 792 errorLine: { 787 793 flexDirection: 'row', 794 + alignItems: 'center', 788 795 backgroundColor: colors.red1, 789 796 borderRadius: 6, 790 797 marginHorizontal: 16, 791 - paddingHorizontal: 8, 792 - paddingVertical: 6, 798 + paddingHorizontal: 12, 799 + paddingVertical: 10, 793 800 marginBottom: 8, 794 801 }, 795 802 reminderLine: {