Merge branch 'dev' of github.com:loki-project/session-ios into protocol

pull/228/head
nielsandriesse 5 years ago
commit 7e9fea2499

@ -20,9 +20,14 @@ public final class Storage : NSObject {
@objc(readWithBlock:)
public static func read(with block: @escaping (YapDatabaseReadTransaction) -> Void) {
// FIXME: For some reason the code below appears to be causing crashes even though it *should*
// be in line with the YapDatabase docs
/*
let isMainThread = Thread.current.isMainThread
let connection = isMainThread ? owsStorage.uiDatabaseConnection : owsStorage.dbReadConnection
connection.read(block)
*/
owsStorage.dbReadConnection.read(block)
}
// MARK: Writing

Loading…
Cancel
Save