Skip to content

Commit 23996c2

Browse files
authored
fix(app): fix stream muted (#492)
Co-authored-by: luke-h1 <luke-h1@users.noreply.github.com>
1 parent 680e2ed commit 23996c2

6 files changed

Lines changed: 185 additions & 56 deletions

File tree

src/components/Chat/Chat.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ export const Chat = memo(({ channelName, channelId }: ChatProps) => {
171171
return;
172172
}
173173

174-
// Only fetch cosmetics for the first 5 seconds of chat to prevent API overload
175174
if (!canFetchCosmetics()) {
176175
const chatStartTime = chatStartTimeRef.current;
177176
const elapsedSeconds = chatStartTime

src/components/Chat/components/ChatInputSection.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ export const ChatInputSection = memo(
6868

6969
const canSend = messageInput.trim() && isConnected;
7070

71+
const inputPlaceholder =
72+
replyTo !== null
73+
? `Reply to ${replyTo.username}...`
74+
: 'Send a message...';
75+
7176
return (
7277
<View
7378
ref={containerRef}
@@ -125,16 +130,12 @@ export const ChatInputSection = memo(
125130
onEmoteSelect={handleEmoteSelect}
126131
onFocus={onFocus}
127132
onBlur={onBlur}
128-
placeholder={
129-
replyTo
130-
? `Reply to ${replyTo.username}...`
131-
: 'Send a message...'
132-
}
133+
placeholder={inputPlaceholder}
133134
editable
134135
autoComplete="off"
135136
autoCapitalize="none"
136137
autoCorrect={false}
137-
placeholderTextColor="#666"
138+
placeholderTextColor="#8E8E93"
138139
onSubmitEditing={onSubmit}
139140
returnKeyType="send"
140141
prioritizeChannelEmotes

0 commit comments

Comments
 (0)