Page MenuHomePhabricator

D8797.diff
No OneTemporary

D8797.diff

diff --git a/native/chat/inner-robotext-message.react.js b/native/chat/inner-robotext-message.react.js
--- a/native/chat/inner-robotext-message.react.js
+++ b/native/chat/inner-robotext-message.react.js
@@ -79,16 +79,9 @@
});
}, [robotextWithENSNames, activeTheme, threadID, styles.robotext]);
- const viewStyle = [styles.robotextContainer];
- if (!__DEV__) {
- // We don't force view height in dev mode because we
- // want to measure it in Message to see if it's correct
- viewStyle.push({ height: item.contentHeight });
- }
-
return (
<TouchableWithoutFeedback onPress={onPress} onLongPress={onLongPress}>
- <View style={viewStyle}>
+ <View style={styles.robotextContainer}>
<Text style={styles.robotext}>{textParts}</Text>
</View>
</TouchableWithoutFeedback>
diff --git a/native/chat/robotext-message.react.js b/native/chat/robotext-message.react.js
--- a/native/chat/robotext-message.react.js
+++ b/native/chat/robotext-message.react.js
@@ -196,12 +196,19 @@
const contentAndHeaderOpacity = useContentAndHeaderOpacity(item);
+ const viewStyle = {};
+ if (!__DEV__) {
+ // We don't force view height in dev mode because we
+ // want to measure it in Message to see if it's correct
+ viewStyle.height = item.contentHeight;
+ }
+
return (
<View {...viewProps}>
<AnimatedView style={{ opacity: contentAndHeaderOpacity }}>
{timestamp}
</AnimatedView>
- <View onLayout={onLayout} ref={viewRef}>
+ <View onLayout={onLayout} ref={viewRef} style={viewStyle}>
<AnimatedView style={{ opacity: contentAndHeaderOpacity }}>
<InnerRobotextMessage
item={item}
@@ -209,8 +216,8 @@
onLongPress={onLongPress}
/>
</AnimatedView>
+ {inlineEngagement}
</View>
- {inlineEngagement}
</View>
);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 4:17 PM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2535215
Default Alt Text
D8797.diff (1 KB)

Event Timeline