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

Merge branch 'fixes-restore-issue-disappearing-data' into 'development'

Fixes restore issue disappearing data

See merge request elixxir/client-ios!53
parents 8a8fc6fd 71d1ad08
No related branches found
No related tags found
2 merge requests!54Releasing 1.1.4,!53Fixes restore issue disappearing data
...@@ -403,9 +403,10 @@ public final class Session: SessionType { ...@@ -403,9 +403,10 @@ public final class Session: SessionType {
/// This will get called when my contact restore its contact. /// This will get called when my contact restore its contact.
/// TODO: Hold a record on the chat that this contact restored. /// TODO: Hold a record on the chat that this contact restored.
/// ///
var contact = $0 if var contact = try? dbManager.fetchContacts(.init(id: [$0.id])).first {
contact.authStatus = .friend contact.authStatus = .friend
_ = try? dbManager.saveContact(contact) _ = try? dbManager.saveContact(contact)
}
}.store(in: &cancellables) }.store(in: &cancellables)
backupService.settingsPublisher backupService.settingsPublisher
......
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