mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 20:54:39 +03:00
webmail: new shadowed variables were detected by shadow since previous commit, prevent
This commit is contained in:
@ -1510,21 +1510,21 @@ func queryMessages(ctx context.Context, log mlog.Log, acc *store.Account, tx *bs
|
|||||||
unread := map[int64]bool{} // Propagated to thread root.
|
unread := map[int64]bool{} // Propagated to thread root.
|
||||||
if query.Threading == ThreadUnread {
|
if query.Threading == ThreadUnread {
|
||||||
for _, mi := range mil {
|
for _, mi := range mil {
|
||||||
m := mi.Message
|
mm := mi.Message
|
||||||
if m.Seen {
|
if mm.Seen {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
unread[m.ID] = true
|
unread[mm.ID] = true
|
||||||
for _, id := range m.ThreadParentIDs {
|
for _, id := range mm.ThreadParentIDs {
|
||||||
unread[id] = true
|
unread[id] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, mi := range mil {
|
for _, mi := range mil {
|
||||||
m := mi.Message
|
mm := mi.Message
|
||||||
threadRoot := true
|
threadRoot := true
|
||||||
rootID := m.ID
|
rootID := mm.ID
|
||||||
for _, id := range m.ThreadParentIDs {
|
for _, id := range mm.ThreadParentIDs {
|
||||||
if _, ok := collapsed[id]; ok {
|
if _, ok := collapsed[id]; ok {
|
||||||
threadRoot = false
|
threadRoot = false
|
||||||
rootID = id
|
rootID = id
|
||||||
|
Reference in New Issue
Block a user