Merge branch 'fix/replyLanguage' into 'develop'

fix: Don't set language to null when reply/renote lang is null/undefined

Co-authored-by: Lhcfl <Lhcfl@outlook.com>

See merge request firefish/firefish!10727
This commit is contained in:
naskya 2024-04-01 17:02:25 +00:00
commit 6f1c29cf05
1 changed files with 4 additions and 4 deletions

View File

@ -1279,11 +1279,11 @@ onMounted(() => {
}
// Inherit language settings when quoting or replying
if (props.renote) {
language.value = props.renote.lang ?? null;
if (props.renote?.lang) {
language.value = props.renote.lang;
}
if (props.reply) {
language.value = props.reply.lang ?? null;
if (props.reply?.lang) {
language.value = props.reply.lang;
}
nextTick(() => watchForDraft());