This commit is contained in:
Joaquín Sánchez 2023-02-12 16:15:29 +01:00 committed by GitHub
parent 54f020b165
commit da7cc78a7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -27,7 +27,7 @@ const emit = defineEmits<{
const { t } = useI18n()
const draftState = useDraft(draftKey, initial)
const { draft, isEmpty } = $(draftState)
const { draft } = $(draftState)
const {
isExceedingAttachmentLimit, isUploading, failedAttachments, isOverDropZone,
@ -48,8 +48,6 @@ const { editor } = useTiptap({
set: (newVal) => {
draft.params.status = newVal
draft.lastUpdated = Date.now()
if (isEmpty)
clearEmptyDrafts()
},
}),
placeholder: computed(() => placeholder ?? draft.params.inReplyToId ? t('placeholder.replying') : t('placeholder.default_1')),