diff --git a/Package.swift b/Package.swift index 8c432a07d7e313da61e7275a48e2ad7ae698c94b..617ab061294b661012d646258bf8cde4c3cf4aef 100644 --- a/Package.swift +++ b/Package.swift @@ -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.4")), + .package(url: "https://git.xx.network/elixxir/client-ios-db.git", .upToNextMajor(from: "1.0.5")), .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")) ], diff --git a/Sources/ChatListFeature/ViewModel/ChatListViewModel.swift b/Sources/ChatListFeature/ViewModel/ChatListViewModel.swift index 15d1a2a0655db3f1f993a607aaf74d3c7530fb4f..98febff09e352ff1e0ff495c032f1e7d1ec1613a 100644 --- a/Sources/ChatListFeature/ViewModel/ChatListViewModel.swift +++ b/Sources/ChatListFeature/ViewModel/ChatListViewModel.swift @@ -129,7 +129,9 @@ final class ChatListViewModel { userId: session.myId, authStatus: [.friend] ), - groupChatInfoQuery: GroupChatInfo.Query(), + groupChatInfoQuery: GroupChatInfo.Query( + authStatus: [.participating] + ), groupQuery: Group.Query( withMessages: false, authStatus: [.participating] diff --git a/Sources/DrawerFeature/Items/DrawerTable.swift b/Sources/DrawerFeature/Items/DrawerTable.swift index bf1b8d4432e2220bcdac8372558bfbdccaf91f66..726dae9fe28ccd5720167a7b4ed1944eebf419e5 100644 --- a/Sources/DrawerFeature/Items/DrawerTable.swift +++ b/Sources/DrawerFeature/Items/DrawerTable.swift @@ -74,17 +74,20 @@ public final class DrawerTable: DrawerItem { } public struct DrawerTableCellModel: Hashable { + let id: Data let title: String let image: Data? let isCreator: Bool let isConnection: Bool public init( + id: Data, title: String, image: Data? = nil, isCreator: Bool = false, isConnection: Bool = true ) { + self.id = id self.title = title self.image = image self.isCreator = isCreator diff --git a/Sources/RequestsFeature/ViewModels/RequestsReceivedViewModel.swift b/Sources/RequestsFeature/ViewModels/RequestsReceivedViewModel.swift index 78c9c7b9122b59dcc49bac7e7fbab1740a5c047a..158021d919c4638032fc3226611942a1c905e869 100644 --- a/Sources/RequestsFeature/ViewModels/RequestsReceivedViewModel.swift +++ b/Sources/RequestsFeature/ViewModels/RequestsReceivedViewModel.swift @@ -174,6 +174,7 @@ final class RequestsReceivedViewModel { .filter { $0.username != nil } .map { DrawerTableCellModel( + id: $0.id, title: $0.nickname ?? $0.username!, image: $0.photo, isCreator: $0.id == group.leaderId, @@ -185,6 +186,7 @@ final class RequestsReceivedViewModel { .filter { $0.username == nil } .map { DrawerTableCellModel( + id: $0.id, title: "Fetching username...", image: $0.photo, isCreator: $0.id == group.leaderId, diff --git a/client-ios.xcworkspace/xcshareddata/swiftpm/Package.resolved b/client-ios.xcworkspace/xcshareddata/swiftpm/Package.resolved index c3d515c022cda04055f28a20cf4cacbda991ac5d..eeb145af40bba398a5526019333b5de39606557e 100644 --- a/client-ios.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/client-ios.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -50,8 +50,8 @@ "kind" : "remoteSourceControl", "location" : "https://git.xx.network/elixxir/client-ios-db.git", "state" : { - "revision" : "0c7f8f2219cde03d3fb6b2354da738a4b09234e9", - "version" : "1.0.4" + "revision" : "adf3c4b906870ecbd0d1d7208f0666939fd08665", + "version" : "1.0.5" } }, {