1
1
Fork 0
mirror of https://github.com/mjl-/mox.git synced 2025-04-21 21:40:01 +03:00

webmail: when scrolling down, don't send another parsed message that will cause one of the new messages to be selected (unexpected jump in the ui)

This commit is contained in:
Mechiel Lukkien 2023-09-23 18:36:24 +02:00
parent d19c75559b
commit f19f16bd8b
No known key found for this signature in database

View file

@ -1476,7 +1476,7 @@ func queryMessages(ctx context.Context, log *mlog.Log, acc *store.Account, tx *b
}
mil := []MessageItem{mi}
if query.Threading != ThreadOff {
more, xpm, err := gatherThread(log, tx, acc, v, m, page.DestMessageID, have == 0)
more, xpm, err := gatherThread(log, tx, acc, v, m, page.DestMessageID, page.AnchorMessageID == 0 && have == 0)
if err != nil {
return fmt.Errorf("gathering thread messages for id %d, thread %d: %v", m.ID, m.ThreadID, err)
}