@@ -121,6 +121,12 @@ export function MText({ edited, content, renderBody, renderUrlsPreview, style }:
121121
122122 const isJumbo = useMemo ( ( ) => {
123123 if ( ! trimmedBody || trimmedBody . length >= 500 ) return false ;
124+ if (
125+ ( unwrappedPerMessageProfileMessage ?? safeCustomBody ) ?. match (
126+ / ^ ( < i m g [ ^ > ] * d a t a - m x - e m o t i c o n [ ^ > ] * \/ > ) { 1 , 20 } $ / i
127+ )
128+ )
129+ return true ;
124130 if ( ! JUMBO_EMOJI_REG . test ( trimmedBody ) ) return false ;
125131
126132 if ( trimmedBody . includes ( ':' ) ) {
@@ -129,7 +135,7 @@ export function MText({ edited, content, renderBody, renderUrlsPreview, style }:
129135 }
130136
131137 return true ;
132- } , [ trimmedBody , safeCustomBody ] ) ;
138+ } , [ unwrappedPerMessageProfileMessage , trimmedBody , safeCustomBody ] ) ;
133139
134140 if ( ! body && ! customBody ) return < BrokenContent body = { customBody ?? body } /> ;
135141
@@ -139,7 +145,11 @@ export function MText({ edited, content, renderBody, renderUrlsPreview, style }:
139145 if ( ( content [ 'com.beeper.per_message_profile' ] as PerMessageProfileBeeperFormat ) ?. has_fallback ) {
140146 // unwrap per-message profile fallback if present
141147 return (
142- < MessageTextBody preWrap = { typeof customBody !== 'string' } style = { style } >
148+ < MessageTextBody
149+ preWrap = { typeof customBody !== 'string' }
150+ style = { style }
151+ jumboEmoji = { isJumbo ? jumboEmojiSize : 'none' }
152+ >
143153 { renderBody ( {
144154 body : trimmedBody ,
145155 customBody : unwrappedPerMessageProfileMessage ,
0 commit comments