Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32161729
D5049.1765043687.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5049.1765043687.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
@@ -109,6 +109,7 @@
style={[styles.text, textStyle]}
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
@@ -17,9 +17,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 parser = React.useMemo(
@@ -64,9 +65,11 @@
}, [emojiOnly, style, emojiOnlyFactor]);
const renderedOutput = React.useMemo(() => {
- const color = tinycolor(threadColor).darken(20).toString();
+ const color = isViewer
+ ? tinycolor(threadColor).darken(20).toString()
+ : `#${String(threadColor)}`;
return output(ast, { textStyle, container, color });
- }, [ast, output, textStyle, container, threadColor]);
+ }, [ast, output, textStyle, container, threadColor, isViewer]);
if (container === 'Text') {
return <Text>{renderedOutput}</Text>;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 5:54 PM (12 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5839929
Default Alt Text
D5049.1765043687.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