Unverified Commit abdd63f1 authored by divyanshu bhargava's avatar divyanshu bhargava Committed by GitHub

Merge pull request #48 from RocketChat/develop

Fix file size validation for drawing image.
parents cedb73c1 54b6b4ca
......@@ -389,9 +389,8 @@ class ChatRoomPresenter @Inject constructor(
val maxFileSizeAllowed = settings.uploadMaxFileSize()
when {
fileSize > maxFileSizeAllowed -> {
fileSize > maxFileSizeAllowed && maxFileSizeAllowed !in -1..0 ->
view.showInvalidFileSize(fileSize, maxFileSizeAllowed)
}
else -> {
retryIO("uploadFile($roomId, $fileName, $mimeType") {
client.uploadFile(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment