Skip to content
Snippets Groups Projects
Commit 21bef5bc authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Updated version of db package an fixed push handler

parent 2c74045e
Branches
Tags
2 merge requests!40v1.1.2b166,!38Using new database structure
......@@ -66,7 +66,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.5.0"),
.package(url: "https://github.com/kishikawakatsumi/KeychainAccess", from: "4.2.1"),
.package(url: "https://github.com/google/google-api-objectivec-client-for-rest", from: "1.6.0"),
.package(url: "https://git.xx.network/elixxir/client-ios-db.git", .upToNextMajor(from: "1.0.1")),
.package(url: "https://git.xx.network/elixxir/client-ios-db.git", .upToNextMajor(from: "1.0.2")),
.package(url: "https://github.com/firebase/firebase-ios-sdk.git", .upToNextMajor(from: "8.10.0")),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture.git",.upToNextMajor(from: "0.32.0"))
],
......
......@@ -103,9 +103,14 @@ public final class PushHandler: PushHandling {
return
}
let dbPath = FileManager.default
.containerURL(forSecurityApplicationGroupIdentifier: "group.elixxir.messenger")!
.appendingPathComponent("xxm_database")
.appendingPathExtension("sqlite").path
let tuples: [(String, Push)] = pushes.compactMap {
guard let userId = $0.source,
let dbManager = try? Database.inMemory(),
let dbManager = try? Database.onDisk(path: dbPath),
let contact = try? dbManager.fetchContacts(.init(id: [userId])).first else {
return ($0.type.unknownSenderContent!, $0)
}
......
......@@ -50,8 +50,8 @@
"kind" : "remoteSourceControl",
"location" : "https://git.xx.network/elixxir/client-ios-db.git",
"state" : {
"revision" : "8674619071b9e2aa909b0626b0b37e64129c4841",
"version" : "1.0.1"
"revision" : "0fde5504ee087c13c5181b205869ea7dbffed900",
"version" : "1.0.2"
}
},
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment