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
!52
Fixes db issue where my contact wasn't created
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixes db issue where my contact wasn't created
fix-bug-restore-own-contact
into
development
Overview
5
Commits
2
Pipelines
0
Changes
2
All threads resolved!
Hide all comments
Merged
Bruno Muniz
requested to merge
fix-bug-restore-own-contact
into
development
2 years ago
Overview
5
Commits
2
Pipelines
0
Changes
2
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
development
version 1
976bea20
2 years ago
development (base)
and
latest version
latest version
443d6f4b
2 commits,
2 years ago
version 1
976bea20
1 commit,
2 years ago
2 files
+
23
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Sources/Integration/Session/Session+UD.swift
+
6
−
13
Options
@@ -41,20 +41,13 @@ extension Session {
switch
$0
{
case
.
success
(
_
):
_
=
try
?
self
.
dbManager
.
saveContact
(
.
init
(
id
:
self
.
client
.
bindings
.
myId
,
marshaled
:
self
.
client
.
bindings
.
meMarshalled
,
username
:
value
,
email
:
nil
,
phone
:
nil
,
nickname
:
nil
,
photo
:
nil
,
authStatus
:
.
friend
,
isRecent
:
false
,
createdAt
:
Date
()
))
self
.
username
=
value
if
var
me
=
try
?
self
.
myContact
()
{
me
.
username
=
value
_
=
try
?
self
.
dbManager
.
saveContact
(
me
)
}
completion
(
.
success
(
nil
))
case
.
failure
(
let
error
):
completion
(
.
failure
(
error
))
Loading