Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enzevalos_iphone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
enzevalos
enzevalos_iphone
Commits
127ac256
Commit
127ac256
authored
4 years ago
by
Oliver Wiese
Browse files
Options
Downloads
Patches
Plain Diff
fix inbox icon
parent
0c6bea65
No related branches found
No related tags found
1 merge request
!84
Resolve "Missing backend features/connections for UI"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enzevalos_iphone/persistentData/FolderRecord.swift
+9
-7
9 additions, 7 deletions
enzevalos_iphone/persistentData/FolderRecord.swift
with
9 additions
and
7 deletions
enzevalos_iphone/persistentData/FolderRecord.swift
+
9
−
7
View file @
127ac256
...
@@ -13,7 +13,7 @@ import CoreData
...
@@ -13,7 +13,7 @@ import CoreData
extension
FolderRecord
{
extension
FolderRecord
{
static
var
FetchRequest
:
NSFetchRequest
<
FolderRecord
>
{
static
var
FetchRequest
:
NSFetchRequest
<
FolderRecord
>
{
let
request
:
NSFetchRequest
<
FolderRecord
>
=
NSFetchRequest
<
FolderRecord
>
(
entityName
:
FolderRecord
.
entityName
)
let
request
:
NSFetchRequest
<
FolderRecord
>
=
NSFetchRequest
<
FolderRecord
>
(
entityName
:
FolderRecord
.
entityName
)
request
.
sortDescriptors
=
[
NSSortDescriptor
(
key
:
"path"
,
ascending
:
true
)]
request
.
sortDescriptors
=
[
NSSortDescriptor
(
key
:
"flags"
,
ascending
:
false
),
NSSortDescriptor
(
key
:
"path"
,
ascending
:
true
)]
return
request
return
request
}
}
}
}
...
@@ -37,7 +37,14 @@ extension FolderRecord {
...
@@ -37,7 +37,14 @@ extension FolderRecord {
if
let
minUID
=
properties
.
minUID
{
if
let
minUID
=
properties
.
minUID
{
self
.
minUID
=
minUID
self
.
minUID
=
minUID
}
}
self
.
flags
=
properties
.
flags
if
properties
.
flags
!=
0
{
self
.
flags
=
properties
.
flags
}
if
UserManager
.
backendInboxFolderPath
==
properties
.
path
{
var
flag
=
MCOIMAPFolderFlag
(
rawValue
:
Int
(
self
.
flags
))
flag
.
formUnion
(
.
inbox
)
self
.
flags
=
Int16
(
flag
.
rawValue
)
}
path
=
properties
.
path
path
=
properties
.
path
}
}
...
@@ -56,10 +63,6 @@ extension FolderRecord {
...
@@ -56,10 +63,6 @@ extension FolderRecord {
var
type
:
FolderType
{
var
type
:
FolderType
{
let
flags
=
MCOIMAPFolderFlag
(
rawValue
:
Int
(
self
.
flags
))
let
flags
=
MCOIMAPFolderFlag
(
rawValue
:
Int
(
self
.
flags
))
print
(
flags
.
isEmpty
)
print
(
self
.
flags
)
// TODO: IS EMPTY! WHY? Do we add this information?
print
(
flags
)
if
flags
.
contains
(
MCOIMAPFolderFlag
.
drafts
)
{
if
flags
.
contains
(
MCOIMAPFolderFlag
.
drafts
)
{
return
.
Draft
return
.
Draft
}
}
...
@@ -100,7 +103,6 @@ extension FolderRecord: DisplayFolder {
...
@@ -100,7 +103,6 @@ extension FolderRecord: DisplayFolder {
}
}
var
icon
:
Image
{
var
icon
:
Image
{
print
(
self
.
path
)
var
label
=
"folder"
var
label
=
"folder"
switch
type
{
switch
type
{
case
.
Archive
:
case
.
Archive
:
...
...
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