mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 10:58:16 +03:00
imapserver: Fix broadcasting change when modifying metadata key
We were not broadcasting the correct change, at least the modseq was missing in case of an update.
This commit is contained in:
parent
ac4b006ecd
commit
26793e407a
@ -263,6 +263,7 @@ func (c *conn) cmdSetmetadata(tag, cmd string, p *parser) {
|
||||
a.ModSeq = modseq
|
||||
err = tx.Insert(&a)
|
||||
xcheckf(err, "inserting annotation")
|
||||
changes = append(changes, a.Change(mailboxName))
|
||||
} else {
|
||||
xcheckf(err, "get metadata")
|
||||
oa.ModSeq = modseq
|
||||
@ -273,8 +274,8 @@ func (c *conn) cmdSetmetadata(tag, cmd string, p *parser) {
|
||||
oa.Value = a.Value
|
||||
err = tx.Update(&oa)
|
||||
xcheckf(err, "updating metdata")
|
||||
changes = append(changes, oa.Change(mailboxName))
|
||||
}
|
||||
changes = append(changes, a.Change(mailboxName))
|
||||
}
|
||||
|
||||
c.xcheckMetadataSize(tx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user