Minor cleanup: use the ModSeq from the Mailbox in a ChangeMailboxAdd, no need to add the ModSeq again

This commit is contained in:
Mechiel Lukkien
2025-03-20 00:10:47 +01:00
parent 9ca50ab207
commit 99f9eb438f
3 changed files with 6 additions and 7 deletions

View File

@ -94,9 +94,8 @@ func (c ChangeRemoveMailbox) ChangeModSeq() ModSeq { return c.ModSeq }
// ChangeAddMailbox is sent for a newly created mailbox.
type ChangeAddMailbox struct {
Mailbox Mailbox
Flags []string // For flags like \Subscribed.
ModSeq ModSeq
Mailbox
Flags []string // For flags like \Subscribed.
}
func (c ChangeAddMailbox) ChangeModSeq() ModSeq { return c.ModSeq }