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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
EXPO_PUBLIC_ENVIRONMENT=development
EXPO_PUBLIC_SHARE_URL=http://localhost:3000
EXPO_PUBLIC_SHARE_URL=http://localhost:8081

EXPO_PUBLIC_API_V2_URL=https://staging-api.ansari.chat/api/v2
EXPO_PUBLIC_API_TIMEOUT=60000
Expand Down
2 changes: 2 additions & 0 deletions src/components/chat/MessageBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@ const markdownStyles = {
flexDirection: 'row',
fontSize: 18,
lineHeight: 24,
marginVertical: 5,
},
heading3: {
flexDirection: 'row',
fontSize: 18,
lineHeight: 24,
marginVertical: 5,
},
heading4: {
flexDirection: 'row',
Expand Down
2 changes: 1 addition & 1 deletion src/components/chat/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const MessageList = forwardRef<MessageListRef, MessageListProps>(
const { isSmallScreen, height } = useScreenInfo(sideMenuWidth)
const theme = useSelector((state: RootState) => state.theme.theme)

if (isLoading && !isSending) {
if (isLoading && !isSending && !activeThread) {
return (
<View className='flex-1 items-center justify-center'>
<ActivityIndicator size='large' color={theme.hoverColor} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/chat/ReactionButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const ReactionButtons: React.FC<ReactionButtonsProps> = ({ threadId, messageId,
}

return (
<View className='flex-row flex-wrap'>
<View className='flex-row flex-wrap gap-x-2'>
{feedbackOptions.map((option) => (
<Pressable
key={option.value}
Expand Down
2 changes: 2 additions & 0 deletions src/services/ApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class ApiService {
headers: {
Authorization: `Bearer ${refreshToken}`,
},
body: JSON.stringify({}),
})

if (!response.ok) {
Expand Down Expand Up @@ -137,6 +138,7 @@ class ApiService {
headers: {
Authorization: `Bearer ${accessToken}`,
},
body: JSON.stringify({}),
})

if (!response.ok) {
Expand Down