Page MenuHomePhorge

D15464.1768260822.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D15464.1768260822.diff

diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js
--- a/native/chat/chat-input-bar.react.js
+++ b/native/chat/chat-input-bar.react.js
@@ -1069,22 +1069,23 @@
if (!isMember && currentUserCanJoin && !threadCreationInProgress) {
let buttonContent;
+ const useDarkColor = !colorIsDark(threadInfo.color);
if (joinThreadLoadingStatus === 'loading') {
buttonContent = (
<ActivityIndicator
size="small"
- color="white"
+ color={useDarkColor ? 'black' : 'white'}
style={styles.joinThreadLoadingIndicator}
/>
);
} else {
- const textStyle = colorIsDark(threadInfo.color)
- ? styles.joinButtonTextLight
- : styles.joinButtonTextDark;
+ const textStyle = useDarkColor
+ ? styles.joinButtonTextDark
+ : styles.joinButtonTextLight;
buttonContent = (
<View style={styles.joinButtonContent}>
<SWMansionIcon name="plus" style={textStyle} />
- <Text style={textStyle}>Join Chat</Text>
+ <Text style={textStyle}>Join chat</Text>
</View>
);
}
diff --git a/web/chat/chat-input-bar.react.js b/web/chat/chat-input-bar.react.js
--- a/web/chat/chat-input-bar.react.js
+++ b/web/chat/chat-input-bar.react.js
@@ -225,7 +225,7 @@
buttonContent = (
<>
<SWMansionIcon icon="plus" size={24} />
- <p className={css.joinButtonText}>Join Chat</p>
+ <p className={css.joinButtonText}>Join chat</p>
</>
);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 12, 11:33 PM (17 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5925290
Default Alt Text
D15464.1768260822.diff (1 KB)

Event Timeline