Merge branch 'replyLanguage' into 'develop'
feat(client): inherit reply/quote language Co-authored-by: eana <coder@apps.1a23.com> Closes #10885 See merge request firefish/firefish!10726
This commit is contained in:
commit
7e0f20c24f
1 changed files with 8 additions and 0 deletions
|
@ -1278,6 +1278,14 @@ onMounted(() => {
|
|||
quoteId.value = init.renote ? init.renote.id : null;
|
||||
}
|
||||
|
||||
// Inherit language settings when quoting or replying
|
||||
if (props.renote) {
|
||||
language.value = props.renote.lang ?? null;
|
||||
}
|
||||
if (props.reply) {
|
||||
language.value = props.reply.lang ?? null;
|
||||
}
|
||||
|
||||
nextTick(() => watchForDraft());
|
||||
nextTick(() => autosize.update(textareaEl.value));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue