Commit 66f1f89e authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Merge branch 'develop' of github.com:RocketChat/Rocket.Chat.Android into new/answers-analytics

parents ad37af44 2e627aaa
...@@ -333,12 +333,9 @@ class ChatRoomPresenter @Inject constructor( ...@@ -333,12 +333,9 @@ class ChatRoomPresenter @Inject constructor(
val maxFileSizeAllowed = settings.uploadMaxFileSize() val maxFileSizeAllowed = settings.uploadMaxFileSize()
when { when {
fileName.isEmpty() -> { fileName.isEmpty() -> view.showInvalidFileMessage()
view.showInvalidFileMessage() fileSize > maxFileSizeAllowed && maxFileSizeAllowed !in -1..0 ->
}
fileSize > maxFileSizeAllowed -> {
view.showInvalidFileSize(fileSize, maxFileSizeAllowed) view.showInvalidFileSize(fileSize, maxFileSizeAllowed)
}
else -> { else -> {
var inputStream: InputStream? = uriInteractor.getInputStream(uri) var inputStream: InputStream? = uriInteractor.getInputStream(uri)
......
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