diff options
author | udf | 2019-08-17 22:33:25 +0200 |
---|---|---|
committer | udf | 2019-08-17 22:59:27 +0200 |
commit | 5d3ab760fdc598adc08e04c24382a19dd0942af7 (patch) | |
tree | 621b1533ef12c091165e5f0f1019d407c91e5734 /always_send_as_photo_or_album.patch | |
parent | a6ec930b22cb8cce709747b52c74f406c6d66317 (diff) | |
download | aur-5d3ab760fdc598adc08e04c24382a19dd0942af7.tar.gz |
Add always_send_as_photo_or_album.patch
Diffstat (limited to 'always_send_as_photo_or_album.patch')
-rw-r--r-- | always_send_as_photo_or_album.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/always_send_as_photo_or_album.patch b/always_send_as_photo_or_album.patch new file mode 100644 index 000000000000..20009befc3c5 --- /dev/null +++ b/always_send_as_photo_or_album.patch @@ -0,0 +1,22 @@ +Description: Disables loading the previous way media was sent, so it always selects either +photo or album by default. + +diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp +index 2f4c45c48..ed9bf4bb6 100644 +--- a/Telegram/SourceFiles/boxes/send_files_box.cpp ++++ b/Telegram/SourceFiles/boxes/send_files_box.cpp +@@ -1498,14 +1498,6 @@ void SendFilesBox::initSendWay() { + ? SendFilesWay::Album + : SendFilesWay::Photos; + } +- const auto way = _controller->session().settings().sendFilesWay(); +- if (way == SendFilesWay::Files) { +- return way; +- } else if (way == SendFilesWay::Album) { +- return _list.albumIsPossible +- ? SendFilesWay::Album +- : SendFilesWay::Photos; +- } + return (_list.albumIsPossible && !_albumPhotosCount) + ? SendFilesWay::Album + : SendFilesWay::Photos; |