Skip to content

Commit

Permalink
fix: Fixed the issue where the conversation content could not be copied
Browse files Browse the repository at this point in the history
fix: Fix spelling error
  • Loading branch information
Amery2010 committed Jan 28, 2025
1 parent 7cc2499 commit 939a018
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions components/MessageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
Blocks,
} from 'lucide-react'
import { EdgeSpeech } from '@xiangfa/polly'
import copy from 'copy-to-clipboard'
import { Avatar, AvatarFallback } from '@/components/ui/avatar'
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'
import Magicdown from '@/components/Magicdown'
Expand Down Expand Up @@ -146,10 +147,11 @@ function MessageItem(props: Props) {

const handleCopy = useCallback(() => {
setIsCopyed(true)
copy(content)
setTimeout(() => {
setIsCopyed(false)
}, 2000)
}, [])
}, 1200)
}, [content])

const handleSpeak = useCallback(async (content: string) => {
const { lang, ttsLang, ttsVoice } = useSettingStore.getState()
Expand Down
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"status": {
"thinking": "Thingking"
"thinking": "Thinking"
},
"clearChatContent": "Clear chat content",
"chatMode": "Chat Mode",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gemini-next-chat",
"version": "1.6.0",
"version": "1.6.1",
"private": true,
"author": "Amery2010 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gemini-next-chat"
version = "1.6.0"
version = "1.6.1"
description = "Your private Gemini application."
authors = ["Amery2010<[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"productName": "gemini-next-chat",
"mainBinaryName": "gemini-next-chat",
"version": "1.6.0",
"version": "1.6.1",
"identifier": "com.u14.app",
"plugins": {},
"app": {
Expand Down

0 comments on commit 939a018

Please sign in to comment.