this repo has no description
0
fork

Configure Feed

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

Getting confused with the logic

Also more accurate content length calc

+6 -4
+6 -4
src/components/status.jsx
··· 253 253 snapStates.settings.contentTranslationHideLanguages || []; 254 254 if (!snapStates.settings.contentTranslation) enableTranslate = false; 255 255 const inlineTranslate = useMemo(() => { 256 + const contentLength = htmlContentLength(content); 256 257 return ( 257 258 !readOnly && 259 + (!withinContext || isSizeLarge) && 258 260 !previewMode && 259 - !withinContext && 260 261 !spoilerText && 261 262 !poll && 262 263 !mediaAttachments?.length && 263 - content?.length > 0 && 264 - content?.length <= INLINE_TRANSLATE_LIMIT 264 + contentLength > 0 && 265 + contentLength <= INLINE_TRANSLATE_LIMIT 265 266 ); 266 267 }, [ 267 268 readOnly, 269 + withinContext, 270 + isSizeLarge, 268 271 previewMode, 269 - withinContext, 270 272 spoilerText, 271 273 poll, 272 274 mediaAttachments,