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
Commits
aec93b0f
Commit
aec93b0f
authored
2 years ago
by
Bruno Muniz
Browse files
Options
Downloads
Patches
Plain Diff
Fixes crash from restoring empty string as phone
parent
680f7c38
No related branches found
No related tags found
2 merge requests
!54
Releasing 1.1.4
,
!50
Search UI 2.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/Integration/Session/Session.swift
+9
-3
9 additions, 3 deletions
Sources/Integration/Session/Session.swift
with
9 additions
and
3 deletions
Sources/Integration/Session/Session.swift
+
9
−
3
View file @
aec93b0f
...
...
@@ -130,11 +130,17 @@ public final class Session: SessionType {
let
params
=
try!
JSONDecoder
()
.
decode
(
BackupParameters
.
self
,
from
:
Data
(
report
.
parameters
.
utf8
))
username
=
params
.
username
phone
=
params
.
phone
email
=
params
.
email
if
let
paramsPhone
=
params
.
phone
,
!
paramsPhone
.
isEmpty
{
phone
=
paramsPhone
}
if
let
paramsEmail
=
params
.
email
,
!
paramsEmail
.
isEmpty
{
email
=
paramsEmail
}
}
print
(
report
.
parameters
)
print
(
"^^^
\(
report
.
parameters
)
"
)
guard
username
!.
isEmpty
==
false
else
{
fatalError
(
"Trying to restore an account that has no username"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment