Show max size in "too large" UI Transfer error

This commit is contained in:
miruka 2020-03-09 10:27:22 -04:00
parent 048c1ddabf
commit ff642485e8

View File

@ -61,7 +61,9 @@ HColumnLayout {
.arg(fileName) :
model.error === "MatrixTooLarge" ?
qsTr("Too large for this server: %1").arg(fileName) :
qsTr("Too large for this server (%1 max): %2")
.arg(CppUtils.formattedBytes(chat.userInfo.max_upload_size))
.arg(fileName) :
model.error === "IsADirectoryError" ?
qsTr("Can't upload folders, need a file: %1").arg(filePath) :