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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
xx messenger iOS
Commits
8f944118
Commit
8f944118
authored
Dec 1, 2022
by
Bruno Muniz
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/delete-account' into 'dev'
Fixes delete account See merge request elixxir/client-ios!84
parents
eb99e4b7
15688e57
Branches
Branches containing commit
No related tags found
1 merge request
!84
Fixes delete account
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/AppCore/DBManager/DBManagerRemoveDB.swift
+8
-2
8 additions, 2 deletions
Sources/AppCore/DBManager/DBManagerRemoveDB.swift
with
8 additions
and
2 deletions
Sources/AppCore/DBManager/DBManagerRemoveDB.swift
+
8
−
2
View file @
8f944118
...
...
@@ -22,8 +22,14 @@ extension DBManagerRemoveDB {
unsetDB
()
try
db
?
.
drop
()
let
fm
=
FileManager
.
default
if
fm
.
fileExists
(
atPath
:
url
.
path
)
{
if
fm
.
fileExists
(
atPath
:
url
.
path
),
url
.
startAccessingSecurityScopedResource
()
{
do
{
try
fm
.
removeItem
(
atPath
:
url
.
path
)
url
.
stopAccessingSecurityScopedResource
()
}
catch
{
url
.
stopAccessingSecurityScopedResource
()
throw
error
}
}
}
}
...
...
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