Commit 3b2ed490 authored by Bruno Muniz's avatar Bruno Muniz 🍎
Browse files

Fixing search ud

parent 822397ec
......@@ -57,7 +57,7 @@ final class OnboardingUsernameViewModel {
let cMix = try self.initCMix()
try cMix.startNetworkFollower(timeoutMS: 10_000)
let e2e = try self.initE2E(cMix)
_ = try self.initUD(alternative: false, e2e: e2e, cMix: cMix)
_ = try self.initUD(alternative: true, e2e: e2e, cMix: cMix)
_ = try self.initGroupManager(e2e)
_ = try self.initTransferManager(e2e)
......
......@@ -92,7 +92,7 @@ final class ProfileViewModel {
do {
try self.userDiscovery.removeFact(
.init(
fact: isEmail ? self.emailStored! : self.phoneStored!,
fact: isEmail ? "E\(self.emailStored!)" : "P\(self.phoneStored!)",
type: isEmail ? FactType.email.rawValue : FactType.phone.rawValue
)
)
......
......@@ -199,8 +199,11 @@ final class RequestsReceivedViewModel {
guard let self = self else { return }
do {
fatalError(">>> Missing trackedId on group model")
try self.groupManager.joinGroup(trackedGroupId: 0)
let trackedId = try self.groupManager
.getGroup(groupId: group.id)
.getTrackedID()
try self.groupManager.joinGroup(trackedGroupId: trackedId)
var group = group
group.authStatus = .participating
......
......@@ -116,7 +116,7 @@ final class SearchLeftViewModel {
let _ = try SearchUD.live(
e2eId: self.e2e.getId(),
udContact: self.userDiscovery.getContact(),
facts: [.init(fact: "\(prefix)\(content)", type: self.stateSubject.value.item.rawValue)],
facts: [Fact(fact: "\(prefix)\(content)", type: self.stateSubject.value.item.rawValue)],
callback: .init(handle: {
switch $0 {
case .success(let dataArray):
......
......@@ -105,7 +105,7 @@
"location" : "https://git.xx.network/elixxir/elixxir-dapps-sdk-swift",
"state" : {
"branch" : "development",
"revision" : "433586cd462551d9fc7661c637ff8af45b5c1a61"
"revision" : "35f4a7a21236ac861ae2887920ef9a6e6fd5f452"
}
},
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment