Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ export const Chat = memo(({ channelName, channelId }: ChatProps) => {
return;
}

// Only fetch cosmetics for the first 5 seconds of chat to prevent API overload
if (!canFetchCosmetics()) {
const chatStartTime = chatStartTimeRef.current;
const elapsedSeconds = chatStartTime
Expand Down
13 changes: 7 additions & 6 deletions src/components/Chat/components/ChatInputSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export const ChatInputSection = memo(

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

const inputPlaceholder =
replyTo !== null
? `Reply to ${replyTo.username}...`
: 'Send a message...';

return (
<View
ref={containerRef}
Expand Down Expand Up @@ -125,16 +130,12 @@ export const ChatInputSection = memo(
onEmoteSelect={handleEmoteSelect}
onFocus={onFocus}
onBlur={onBlur}
placeholder={
replyTo
? `Reply to ${replyTo.username}...`
: 'Send a message...'
}
placeholder={inputPlaceholder}
editable
autoComplete="off"
autoCapitalize="none"
autoCorrect={false}
placeholderTextColor="#666"
placeholderTextColor="#8E8E93"
onSubmitEditing={onSubmit}
returnKeyType="send"
prioritizeChannelEmotes
Expand Down
Loading
Loading