Skip to content

Commit c2a7f28

Browse files
v4.3.3 (131)
1 parent 8edfcf1 commit c2a7f28

File tree

5 files changed

+48
-29
lines changed

5 files changed

+48
-29
lines changed

ChatSecure/Classes/Controllers/FileTransferManager.swift

+13-11
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,19 @@ public class FileTransferManager: NSObject, OTRServerCapabilitiesDelegate {
155155

156156
// Resume downloads, i.e. look for media items that are partially downloaded and retry getting them. TODO - use ranges
157157
@objc public func resumeDownloads() {
158-
connection.asyncRead { [weak self] (transaction) in
159-
let unfinished = transaction.unfinishedDownloads()
160-
self?.internalQueue.async {
161-
for mediaItem in unfinished {
162-
if let downloadMessage = mediaItem.parentObject(with: transaction) as? OTRDownloadMessage,
163-
downloadMessage.messageError == nil {
164-
self?.downloadMedia(downloadMessage)
165-
}
166-
}
167-
}
168-
}
158+
/// https://github.com/ChatSecure/ChatSecure-iOS/issues/1034
159+
DDLogWarn("WARN: Download resumption is disabled. See https://github.com/ChatSecure/ChatSecure-iOS/issues/1034 for more information.")
160+
// connection.asyncRead { [weak self] (transaction) in
161+
// let unfinished = transaction.unfinishedDownloads()
162+
// self?.internalQueue.async {
163+
// for mediaItem in unfinished {
164+
// if let downloadMessage = mediaItem.parentObject(with: transaction) as? OTRDownloadMessage,
165+
// downloadMessage.messageError == nil {
166+
// self?.downloadMedia(downloadMessage)
167+
// }
168+
// }
169+
// }
170+
// }
169171
}
170172

171173
/// This will fetch capabilities and setup XMPP transfer module if needed

ChatSecure/Classes/Controllers/YapDatabaseTransaction+ChatSecure.swift

+16-14
Original file line numberDiff line numberDiff line change
@@ -149,19 +149,21 @@ public extension YapDatabaseReadTransaction {
149149
public extension YapDatabaseReadTransaction {
150150

151151
public func unfinishedDownloads() -> [OTRMediaItem] {
152-
guard let secondaryIndexTransaction = self.ext(SecondaryIndexName.mediaItems) as? YapDatabaseSecondaryIndexTransaction else {
153-
return []
154-
}
155-
var unfinished: [OTRMediaItem] = []
156-
let queryString = "Where \(MediaItemIndexColumnName.transferProgress) < 1 AND \(MediaItemIndexColumnName.isIncoming) == 1"
157-
let query = YapDatabaseQuery(string: queryString, parameters: [])
158-
secondaryIndexTransaction.enumerateKeysAndObjects(matching: query) { (key, collection, object, stop) in
159-
if let download = object as? OTRMediaItem {
160-
unfinished.append(download)
161-
} else {
162-
DDLogError("Non-media item object in downloads index \(object)")
163-
}
164-
}
165-
return unfinished
152+
/// https://github.com/ChatSecure/ChatSecure-iOS/issues/1034
153+
return []
154+
// guard let secondaryIndexTransaction = self.ext(SecondaryIndexName.mediaItems) as? YapDatabaseSecondaryIndexTransaction else {
155+
// return []
156+
// }
157+
// var unfinished: [OTRMediaItem] = []
158+
// let queryString = "Where \(MediaItemIndexColumnName.transferProgress) < 1 AND \(MediaItemIndexColumnName.isIncoming) == 1"
159+
// let query = YapDatabaseQuery(string: queryString, parameters: [])
160+
// secondaryIndexTransaction.enumerateKeysAndObjects(matching: query) { (key, collection, object, stop) in
161+
// if let download = object as? OTRMediaItem {
162+
// unfinished.append(download)
163+
// } else {
164+
// DDLogError("Non-media item object in downloads index \(object)")
165+
// }
166+
// }
167+
// return unfinished
166168
}
167169
}

ChatSecure/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.3.2</string>
18+
<string>4.3.3</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleURLTypes</key>
@@ -35,7 +35,7 @@
3535
</dict>
3636
</array>
3737
<key>CFBundleVersion</key>
38-
<string>130</string>
38+
<string>131</string>
3939
<key>FacebookAppID</key>
4040
<string>447241325394334</string>
4141
<key>FacebookDisplayName</key>

fastlane/Deliverfile

+16-1
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,30 @@
1717
# beta_ipa "./app.ipa"
1818

1919
# The version of your app - remove this if you provide an ipa file
20-
app_version "4.3.2"
20+
app_version "4.3.3"
2121
submit_for_review false
2222
skip_binary_upload true
2323
# overwrite_screenshots true
2424
skip_screenshots true
25+
force true
2526

2627
metadata_path "./Submodules/ChatSecure-Metadata/metadata"
2728
screenshots_path "./Submodules/ChatSecure-Metadata/screenshots"
2829

30+
release_notes({
31+
'default' => "v4.3.3:
32+
* Actually fix crash on launch by disabling download resumption
33+
v4.3.2:
34+
* Fix crash on launch when resuming downloads
35+
v4.3.1:
36+
* Fix bug causing duplicate MAM messages
37+
* No longer expires the last remaining OMEMO key after it hasn't been seen for > 30 days
38+
* Minor bug fixes
39+
40+
Changelog: https://github.com/chatsecure/chatsecure-ios/compare/v4.3.0...v4.3.3
41+
",
42+
})
43+
2944
###################### More Options ######################
3045
# If you want to have even more control, check out the documentation
3146
# https://github.com/KrauseFx/deliver/blob/master/Deliverfile.md

0 commit comments

Comments
 (0)