From 0047f09e2bddd8b25a20de7e8f4271a70ffba3ba Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sat, 20 Apr 2024 21:33:14 +0200 Subject: [PATCH] webmail: new shadowed variables were detected by shadow since previous commit, prevent --- webmail/view.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/webmail/view.go b/webmail/view.go index 81ba9ee..90c8b02 100644 --- a/webmail/view.go +++ b/webmail/view.go @@ -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