fix: rename thread dialog shows previous thread (#5963)

This commit is contained in:
Faisal Amir 2025-07-30 09:18:43 +07:00 committed by GitHub
parent ee582a8e52
commit 079759939a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,9 +158,10 @@ const SortableItem = memo(({ thread }: { thread: Thread }) => {
)} )}
<Dialog <Dialog
onOpenChange={(open) => { onOpenChange={(open) => {
if (!open) { if (open) {
setOpenDropdown(false)
setTitle(plainTitleForRename || t('common:newThread')) setTitle(plainTitleForRename || t('common:newThread'))
} else {
setOpenDropdown(false)
} }
}} }}
> >