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

This commit is contained in:
JRoberts authored and GitHub committed 2022-04-25 12:44:24 +04:00
1 parent 0470f9cf36
commit db4731f19b
21 files changed
+485 -326

No files matched your search

+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)