Commit Graph

12 Commits

Author SHA1 Message Date
John Preston
ec5aaf66d4 Add context menus to Send Music results
Task: 2026/08/19/add-context-menus-to-send-music
2026-08-20 08:50:40 +04:00
John Preston
38aec1e3d4 Fix build on Linux. 2026-08-19 00:33:28 +04:00
John Preston
9a26118ae1 Clean up merged music attach code
Fold the three AllowsMediaDownloadControls copies into
HistoryItem::allowsMediaDownloadControls, share one retry-or-fail
handler in SendMusicSelectionBatch, reuse MakeMusicSelectionItems
instead of the NormalizeSelections near-copy and extract the
duplicated bot resolution block into applyResolvedBot.

Remove the dead accumulate-from-top machinery from both music
providers and the list widget, the subscriber-less slice snapshot
stream, the never-started search section request timer and the
unused Result::isAudioResult.

Consolidate the sixteen MusicAttachBox make_state allocations into
one State struct, fix the include order, use base::take for the
request waiters, replace the removeFromAlbum if-with-initializer
with a plain null-checked session and type kSearchRequestDelay as
crl::time.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-15 08:45:58 +04:00
John Preston
d7d3fc91b5 Fix music loading on scrolling. 2026-08-14 16:23:44 +04:00
John Preston
4bf3a6c435 Improve skips in music selectors. 2026-08-14 16:23:44 +04:00
John Preston
9567d044b3 Filter-out non-forwardable music files. 2026-08-14 16:23:44 +04:00
John Preston
04c0564724 Support correct shared music loading. 2026-08-14 16:23:44 +04:00
John Preston
4ac12e26f2 Fix rows height in music send. 2026-08-14 16:23:44 +04:00
John Preston
3cf1098222 Restore music sections at the true top slice. 2026-08-14 16:23:44 +04:00
John Preston
c8786dde62 Load music chat results while scrolling. 2026-08-14 16:23:44 +04:00
John Preston
cb74cfa8f9 Fix sending with ephemeral messages. 2026-08-14 16:23:44 +04:00
John Preston
ec689724ae Initial ability to send audio in attaches. 2026-08-14 16:23:44 +04:00