morethanwords/tweb/master • 06cdebc • 1 files, +11/-5
Stop counting an empty media type in the shared media subtitle
The Media tab's header subtitle joined both counters unconditionally, so a chat
that has photos and no videos read "12313 photos, 0 videos" — naming a type it
has nothing of. It now lists only the types with a non-zero count.
Dropping the zeros outright can leave nothing to print, though: the filter menu
can narrow the tab to photos only in a chat whose photos count is 0, and an
empty subtitle looks broken. So when no enabled type has anything, it falls
back to a single zero entry ("0 photos") rather than to blank.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
#webk
Post #20531
144
- 🫡 3