add request size limit notifications

This commit is contained in:
olcxja 2026-07-18 15:06:20 +02:00
commit 5233b4518f
8 changed files with 26 additions and 8 deletions

View file

@ -2900,9 +2900,12 @@ async function sendMessage(sendbutton = document.getElementById("chat-sendmessag
}
if (res.status === 413) {
throw new Error("error.body.too.large");
throw new Error("error:body.too.large");
}
let text = await res.text();
if (text.startsWith("error:")) {
throw new Error(text);
}
let decText;
try {
decText = await decryptString(text, passwordHash);