mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
Apply suggestion to internal/store/mailbox_message.go
This commit is contained in:
@ -81,7 +81,7 @@ func (storeMailbox *Mailbox) LabelMessages(apiIDs []string) error {
|
|||||||
"mailbox": storeMailbox.Name,
|
"mailbox": storeMailbox.Name,
|
||||||
}).Trace("Labeling messages")
|
}).Trace("Labeling messages")
|
||||||
if storeMailbox.labelID == pmapi.AllMailLabel {
|
if storeMailbox.labelID == pmapi.AllMailLabel {
|
||||||
return errAllMailOpNotAllowed
|
return ErrAllMailOpNotAllowed
|
||||||
}
|
}
|
||||||
defer storeMailbox.pollNow()
|
defer storeMailbox.pollNow()
|
||||||
return storeMailbox.client().LabelMessages(apiIDs, storeMailbox.labelID)
|
return storeMailbox.client().LabelMessages(apiIDs, storeMailbox.labelID)
|
||||||
|
|||||||
Reference in New Issue
Block a user