mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
GODT-1686: Add Label/Folder filtering to pmapi
This commit is contained in:
@ -38,7 +38,7 @@ const (
|
||||
DraftLabel = "8"
|
||||
StarredLabel = "10"
|
||||
|
||||
LabelTypeMailbox = 1
|
||||
LabelTypeMailBox = 1
|
||||
LabelTypeContactGroup = 2
|
||||
)
|
||||
|
||||
@ -89,7 +89,7 @@ type Label struct { //nolint:maligned
|
||||
}
|
||||
|
||||
func (c *client) ListLabels(ctx context.Context) (labels []*Label, err error) {
|
||||
return c.listLabelType(ctx, LabelTypeMailbox)
|
||||
return c.listLabelType(ctx, LabelTypeMailBox)
|
||||
}
|
||||
|
||||
func (c *client) ListContactGroups(ctx context.Context) (labels []*Label, err error) {
|
||||
|
||||
Reference in New Issue
Block a user