mobile: correctly resize images, refine image sending UI (#546)

This commit is contained in:
JRoberts
2022-04-25 12:44:24 +04:00
committed by GitHub
parent 0470f9cf36
commit db4731f19b
21 changed files with 485 additions and 326 deletions
+1 -2
View File
@@ -743,8 +743,7 @@ func processReceivedMsg(_ res: ChatResponse) {
let cItem = aChatItem.chatItem
chatModel.addChatItem(cInfo, cItem)
if let file = cItem.file,
file.fileSize <= 236700 {
// file.fileSize <= 394500 {
file.fileSize <= maxImageSize {
Task {
do {
try await receiveFile(fileId: file.fileId)