mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
GODT-1686: Add Label/Folder filtering to pmapi
This commit is contained in:
@ -128,7 +128,7 @@ func (mc *mailboxCounts) getPMLabel() *pmapi.Label {
|
||||
Path: mc.LabelName,
|
||||
Color: mc.Color,
|
||||
Order: mc.Order,
|
||||
Type: pmapi.LabelTypeMailbox,
|
||||
Type: pmapi.LabelTypeMailBox,
|
||||
Exclusive: pmapi.Boolean(mc.IsFolder),
|
||||
}
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ func (store *Store) createMailbox(name string) error {
|
||||
Name: name,
|
||||
Color: color,
|
||||
Exclusive: pmapi.Boolean(exclusive),
|
||||
Type: pmapi.LabelTypeMailbox,
|
||||
Type: pmapi.LabelTypeMailBox,
|
||||
})
|
||||
return err
|
||||
}
|
||||
@ -188,7 +188,7 @@ func (store *Store) createOrUpdateMailboxEvent(label *pmapi.Label) error {
|
||||
store.lock.Lock()
|
||||
defer store.lock.Unlock()
|
||||
|
||||
if label.Type != pmapi.LabelTypeMailbox {
|
||||
if label.Type != pmapi.LabelTypeMailBox {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user