Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xx messenger iOS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
xx messenger iOS
Merge requests
!53
Fixes restore issue disappearing data
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixes restore issue disappearing data
fixes-restore-issue-disappearing-data
into
development
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Bruno Muniz
requested to merge
fixes-restore-issue-disappearing-data
into
development
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
development
version 2
39a92d2b
2 years ago
version 1
39a92d2b
2 years ago
development (base)
and
latest version
latest version
71d1ad08
1 commit,
2 years ago
version 2
39a92d2b
1 commit,
2 years ago
version 1
39a92d2b
40 commits,
2 years ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Sources/Integration/Session/Session.swift
+
4
−
3
Options
@@ -403,9 +403,10 @@ public final class Session: SessionType {
/// This will get called when my contact restore its contact.
/// TODO: Hold a record on the chat that this contact restored.
///
var
contact
=
$0
contact
.
authStatus
=
.
friend
_
=
try
?
dbManager
.
saveContact
(
contact
)
if
var
contact
=
try
?
dbManager
.
fetchContacts
(
.
init
(
id
:
[
$0
.
id
]))
.
first
{
contact
.
authStatus
=
.
friend
_
=
try
?
dbManager
.
saveContact
(
contact
)
}
}
.
store
(
in
:
&
cancellables
)
backupService
.
settingsPublisher
Loading