From 8f2903eeba47b25a0ed8b1ad3a3bdb5eefd9afbc Mon Sep 17 00:00:00 2001 From: Meru Alagalingam Date: Fri, 4 Dec 2020 23:06:21 +0100 Subject: [PATCH] FIX(client): Respect unlimited imagemessagelength When you set the imagemessagelength to 0 on the server and paste an image into the client chat no error should pop up that the image is too large. --- src/mumble/CustomElements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mumble/CustomElements.cpp b/src/mumble/CustomElements.cpp index c04ada355..5ca858f6a 100644 --- a/src/mumble/CustomElements.cpp +++ b/src/mumble/CustomElements.cpp @@ -187,7 +187,7 @@ bool ChatbarTextEdit::sendImagesFromMimeData(const QMimeData *source) { QString imgHtml = QLatin1String("
") + Log::imageToImg(image); - if (static_cast< unsigned int >(imgHtml.length()) < g.uiImageLength) { + if ((g.uiImageLength == 0) || static_cast< unsigned int >(imgHtml.length()) < g.uiImageLength) { emit pastedImage(imgHtml); return true; } else {