Răsfoiți Sursa

bugfix - footer in accountSetup remained visible under certain circumstances

Bastian van de Wetering 6 ani în urmă
părinte
comite
9ca5a9832b

+ 1 - 0
deltachat-ios/Controller/AccountSetupController.swift

@@ -332,6 +332,7 @@ class AccountSetupController: UITableViewController {
 		} else {
 			tableView.deleteRows(at: advancedIndexPaths, with: .fade)
 		}
+		tableView.reloadData() // to re-organize footer view (without that sometimes advanced section footer is still visible)
 	}
 
 	@objc private func loginButtonPressed() {

+ 3 - 5
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -419,11 +419,9 @@ class ChatViewCoordinator: Coordinator {
 				DispatchQueue.global().async {
 					if let compressedImage = image?.dcCompress() {
 						// at this point image is compressed by 85% by default
-//						let pixelSize = compressedImage.imageSizeInPixel()
-//						let width = Int32(exactly: pixelSize.width)!
-//						let height =  Int32(exactly: pixelSize.height)!
-						let width = Int32(exactly: compressedImage.size.width)!
-						let height = Int32(exactly: compressedImage.size.height)!
+						let pixelSize = compressedImage.imageSizeInPixel()
+						let width = Int32(exactly: pixelSize.width)!
+						let height =  Int32(exactly: pixelSize.height)!
 						let path = Utils.saveImage(image: compressedImage)
 						let msg = dc_msg_new(mailboxPointer, DC_MSG_IMAGE)
 						dc_msg_set_file(msg, path, "image/jpeg")