Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3332997
D5049.id16530.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D5049.id16530.diff
View Options
diff --git a/native/chat/inner-text-message.react.js b/native/chat/inner-text-message.react.js
--- a/native/chat/inner-text-message.react.js
+++ b/native/chat/inner-text-message.react.js
@@ -118,6 +118,7 @@
style={markdownStyles}
rules={rules}
threadColor={item.threadInfo.color}
+ isViewer={isViewer}
>
{text}
</Markdown>
diff --git a/native/markdown/markdown.react.js b/native/markdown/markdown.react.js
--- a/native/markdown/markdown.react.js
+++ b/native/markdown/markdown.react.js
@@ -18,9 +18,10 @@
+children: string,
+rules: MarkdownRules,
+threadColor?: string,
+ +isViewer?: boolean,
};
function Markdown(props: Props): React.Node {
- const { style, children, rules, threadColor } = props;
+ const { style, children, rules, threadColor, isViewer } = props;
const { simpleMarkdownRules, emojiOnlyFactor, container } = rules;
const boundColors = useColors();
@@ -69,7 +70,9 @@
const renderedOutput = React.useMemo(() => {
let color = boundColors.listChatBubble;
if (threadColor) {
- color = tinycolor(threadColor).darken(20).toString();
+ color = isViewer
+ ? tinycolor(threadColor).darken(20).toString()
+ : tinycolor(threadColor).toString();
}
return output(ast, { textStyle, container, color });
}, [
@@ -79,6 +82,7 @@
container,
threadColor,
boundColors.listChatBubble,
+ isViewer,
]);
if (container === 'Text') {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 3:22 AM (4 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2559290
Default Alt Text
D5049.id16530.diff (1 KB)
Attached To
Mode
D5049: [native] Update non-viewer blockquote message container color to be base thread color
Attached
Detach File
Event Timeline
Log In to Comment