morethanwords/tweb/master • 267f539 • 3 files, +212/-4
Fix false pin limit from archived pins leaking into the main folder
Folder-scoped messages.getDialogs / messages.getPinnedDialogs answers come
without dialog.folder_id, so archived dialogs were filed into folder 0 and their
pins piled up in pinnedOrders[0]. Nothing ever pruned them and the order is
persisted, so toggleDialogPin reported the limit as reached with only a few
chats actually pinned.
Pass the requested folder to saveDialog again (as an argument, so a known dialog
keeps its cached folder), thread it through applyDialogs, and drop foreign
folder entries from pinnedOrders on load to repair existing state.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
morethanwords/tweb/master • 79b177c • 3 files, +71/-1
Don't count folded Community members against the pin limit
A member chat of a folded Community is hidden from the real folders, so its pin
holds a slot the user can neither see nor unpin there — the limit popup fires
with fewer rows on screen than the limit. tdesktop drops such a history from the
folder's local pinned list when the Community folds, so its limit ignores them
too. Count only the visible pins, leaving pinnedOrders as server truth so the
pins survive unfolding; the server still answers the actual request.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
morethanwords/tweb/master • 4184843 • 7 files, +230/-267
Fix inline bluff spoilers in Safari
morethanwords/tweb/master • 08e3a63 • 3 files, +5/-5
Rename getPinnedOrdersCount to getVisiblePinnedCount
Sitting next to getPinnedOrders, it read as that array's length — the one thing
it is not.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
morethanwords/tweb/master • 2a06488 • 300 files, +789/-785
Build
#webk
Post #20668
81
- 🫡 3