Skip to content
Snippets Groups Projects
Commit caedaee8 authored by Bruno Muniz's avatar Bruno Muniz
Browse files

Updated db package 1.0.4 and fixed chat liss

parent 47f17013
No related branches found
No related tags found
2 merge requests!40v1.1.2b166,!38Using new database structure
...@@ -66,7 +66,7 @@ let package = Package( ...@@ -66,7 +66,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.5.0"), .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/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://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.3")), .package(url: "https://git.xx.network/elixxir/client-ios-db.git", .upToNextMajor(from: "1.0.4")),
.package(url: "https://github.com/firebase/firebase-ios-sdk.git", .upToNextMajor(from: "8.10.0")), .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")) .package(url: "https://github.com/pointfreeco/swift-composable-architecture.git",.upToNextMajor(from: "0.32.0"))
], ],
......
...@@ -123,7 +123,15 @@ final class ChatListViewModel { ...@@ -123,7 +123,15 @@ final class ChatListViewModel {
private let hudSubject = CurrentValueSubject<HUDStatus, Never>(.none) private let hudSubject = CurrentValueSubject<HUDStatus, Never>(.none)
init() { init() {
session.dbManager.fetchChatInfosPublisher(.init(userId: session.myId)) session.dbManager.fetchChatInfosPublisher(
ChatInfo.Query(
contactChatInfoQuery: .init(
userId: session.myId,
authStatus: [.friend]
),
groupChatInfoQuery: GroupChatInfo.Query(),
groupQuery: Group.Query(withMessages: false)
))
.assertNoFailure() .assertNoFailure()
.sink { [unowned self] in chatsSubject.send($0) } .sink { [unowned self] in chatsSubject.send($0) }
.store(in: &cancellables) .store(in: &cancellables)
......
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://git.xx.network/elixxir/client-ios-db.git", "location" : "https://git.xx.network/elixxir/client-ios-db.git",
"state" : { "state" : {
"revision" : "bd3a8c3340c5164d9c6e8b088f8da21e6fc3bf49", "revision" : "0c7f8f2219cde03d3fb6b2354da738a4b09234e9",
"version" : "1.0.3" "version" : "1.0.4"
} }
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment