aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_keymap.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-08 10:37:48 +0200
committerDanilo M. <danix@danix.xyz>2026-08-10 08:23:24 +0200
commit98250d51021aee8929d9f5084a440647c43132b0 (patch)
treef5ee9a37fdde65a8f8c00415f1165147aa0b1489 /tests/test_keymap.cpp
parent5487d581069333a64e0e0480f53f06a7b64e486d (diff)
downloadqtmaildir-98250d51021aee8929d9f5084a440647c43132b0.tar.gz
qtmaildir-98250d51021aee8929d9f5084a440647c43132b0.zip
feat(ui): load a thread's replies when its row is expanded
Replies are fetched on expansion rather than with the query: walking the reply tree of every thread in a 10k-thread result would cost more than the query and almost none of it would be looked at. hasChildren is what makes that lazy loading work, and its absence would have shipped the feature unreachable. rowCount is 0 until the worker has walked the thread, so a view left to infer the expander from rowCount alone draws none, the user can never expand, and the replies are never requested. It answers from the summary's totalCount before loading and from the children afterwards, so a thread whose count included duplicates stops offering an expander that opens onto nothing. onThreadTreeLoaded reads the thread id from the reply rather than remembering it from the request. Two expansions can be in flight at once, and pairing them by order would attach one thread's replies to the other.
Diffstat (limited to 'tests/test_keymap.cpp')
0 files changed, 0 insertions, 0 deletions