mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
webmail: new shadowed variables were detected by shadow since previous commit, prevent
This commit is contained in:
parent
0f735a1710
commit
0047f09e2b
1 changed files with 7 additions and 7 deletions
|
@ -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.
|
||||
if query.Threading == ThreadUnread {
|
||||
for _, mi := range mil {
|
||||
m := mi.Message
|
||||
if m.Seen {
|
||||
mm := mi.Message
|
||||
if mm.Seen {
|
||||
continue
|
||||
}
|
||||
unread[m.ID] = true
|
||||
for _, id := range m.ThreadParentIDs {
|
||||
unread[mm.ID] = true
|
||||
for _, id := range mm.ThreadParentIDs {
|
||||
unread[id] = true
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, mi := range mil {
|
||||
m := mi.Message
|
||||
mm := mi.Message
|
||||
threadRoot := true
|
||||
rootID := m.ID
|
||||
for _, id := range m.ThreadParentIDs {
|
||||
rootID := mm.ID
|
||||
for _, id := range mm.ThreadParentIDs {
|
||||
if _, ok := collapsed[id]; ok {
|
||||
threadRoot = false
|
||||
rootID = id
|
||||
|
|
Loading…
Reference in a new issue