core: check max file size before sending (#2224)

This commit is contained in:
spaced4ndy
2023-04-21 13:46:56 +04:00
committed by GitHub
parent a06393f520
commit 5e0d6d77b9
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -1314,6 +1314,7 @@ viewChatError logLevel = \case
CEGroupCantResendInvitation g c -> viewCannotResendInvitation g c
CEGroupInternal s -> ["chat group bug: " <> plain s]
CEFileNotFound f -> ["file not found: " <> plain f]
CEFileSize f -> ["file size exceeds the limit: " <> plain f]
CEFileAlreadyReceiving f -> ["file is already being received: " <> plain f]
CEFileCancelled f -> ["file cancelled: " <> plain f]
CEFileCancel fileId e -> ["error cancelling file " <> sShow fileId <> ": " <> sShow e]