mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 00:07:01 +00:00
A tag sits on messages in the user's own account and in the shared (group) accounts alike, but the tag view only asked the account of the open folder, and the sidebar badge only counted the own account: with 2 own and 2 team messages tagged Red, the Red view showed 2, and which 2 depended on the folder it was opened from. The tag view now fans out like the "All folders" search (#1082), which it is: every folder of the own account and of each shared account with folders in the sidebar, in one request, with rows stamped with their account so opening, untagging and every other action reach the right one. A search inside the tag view narrows it in every account. The tag badges sum the counts of the same accounts; the query pairs for all of them go out packed into as few requests as `maxCallsInRequest` allows, and an account that can't be reached counts nothing instead of failing the badges.