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

Fixing search ud

parent 822397ec
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ final class OnboardingUsernameViewModel { ...@@ -57,7 +57,7 @@ final class OnboardingUsernameViewModel {
let cMix = try self.initCMix() let cMix = try self.initCMix()
try cMix.startNetworkFollower(timeoutMS: 10_000) try cMix.startNetworkFollower(timeoutMS: 10_000)
let e2e = try self.initE2E(cMix) 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.initGroupManager(e2e)
_ = try self.initTransferManager(e2e) _ = try self.initTransferManager(e2e)
......
...@@ -92,7 +92,7 @@ final class ProfileViewModel { ...@@ -92,7 +92,7 @@ final class ProfileViewModel {
do { do {
try self.userDiscovery.removeFact( try self.userDiscovery.removeFact(
.init( .init(
fact: isEmail ? self.emailStored! : self.phoneStored!, fact: isEmail ? "E\(self.emailStored!)" : "P\(self.phoneStored!)",
type: isEmail ? FactType.email.rawValue : FactType.phone.rawValue type: isEmail ? FactType.email.rawValue : FactType.phone.rawValue
) )
) )
......
...@@ -199,8 +199,11 @@ final class RequestsReceivedViewModel { ...@@ -199,8 +199,11 @@ final class RequestsReceivedViewModel {
guard let self = self else { return } guard let self = self else { return }
do { do {
fatalError(">>> Missing trackedId on group model") let trackedId = try self.groupManager
try self.groupManager.joinGroup(trackedGroupId: 0) .getGroup(groupId: group.id)
.getTrackedID()
try self.groupManager.joinGroup(trackedGroupId: trackedId)
var group = group var group = group
group.authStatus = .participating group.authStatus = .participating
......
...@@ -116,7 +116,7 @@ final class SearchLeftViewModel { ...@@ -116,7 +116,7 @@ final class SearchLeftViewModel {
let _ = try SearchUD.live( let _ = try SearchUD.live(
e2eId: self.e2e.getId(), e2eId: self.e2e.getId(),
udContact: self.userDiscovery.getContact(), 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: { callback: .init(handle: {
switch $0 { switch $0 {
case .success(let dataArray): case .success(let dataArray):
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
"location" : "https://git.xx.network/elixxir/elixxir-dapps-sdk-swift", "location" : "https://git.xx.network/elixxir/elixxir-dapps-sdk-swift",
"state" : { "state" : {
"branch" : "development", "branch" : "development",
"revision" : "433586cd462551d9fc7661c637ff8af45b5c1a61" "revision" : "35f4a7a21236ac861ae2887920ef9a6e6fd5f452"
} }
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment