mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
focus on chatmessage edit
This commit is contained in:
parent
847b57c406
commit
3e584d01a3
1 changed files with 2 additions and 0 deletions
|
|
@ -810,6 +810,7 @@ const UserMessageComponent = ({ chatMessage, messageIdx, isCommitted }: { chatMe
|
|||
|
||||
const accessor = useAccessor()
|
||||
const chatThreadsService = accessor.get('IChatThreadService')
|
||||
const sidebarStateService = accessor.get('ISidebarStateService')
|
||||
|
||||
// global state
|
||||
let isBeingEdited = false
|
||||
|
|
@ -905,6 +906,7 @@ const UserMessageComponent = ({ chatMessage, messageIdx, isCommitted }: { chatMe
|
|||
} catch (e) {
|
||||
console.error('Error while editing message:', e)
|
||||
}
|
||||
sidebarStateService.fireFocusChat()
|
||||
}
|
||||
|
||||
const onAbort = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue