Update files

This commit is contained in:
Mohamed Boudra
2026-02-08 16:15:49 +07:00
parent c5a27a4ddc
commit 1b7490d1ae
3 changed files with 58 additions and 21 deletions
@@ -2,6 +2,7 @@ import {
View,
TextInput,
Pressable,
ActivityIndicator,
NativeSyntheticEvent,
TextInputContentSizeChangeEventData,
TextInputKeyPressEventData,
@@ -533,7 +534,7 @@ export const MessageInput = forwardRef<MessageInputRef, MessageInputProps>(
const hasImages = images.length > 0;
const hasSendableContent = value.trim().length > 0 || hasImages;
const shouldShowSendButton = hasSendableContent;
const shouldShowSendButton = hasSendableContent || isSubmitLoading;
const isConnected = client?.isConnected ?? false;
return (
@@ -675,7 +676,11 @@ export const MessageInput = forwardRef<MessageInputRef, MessageInputProps>(
styles.buttonDisabled,
]}
>
<ArrowUp size={20} color="white" />
{isSubmitLoading ? (
<ActivityIndicator size="small" color="white" />
) : (
<ArrowUp size={20} color="white" />
)}
</Pressable>
)}
</View>