diff options
author | Dan Elkouby | 2020-10-31 16:20:20 +0200 |
---|---|---|
committer | Dan Elkouby | 2020-10-31 17:11:36 +0200 |
commit | 067d7c3d006581f5a544151f8cb2a5276da9a17a (patch) | |
tree | 7d7e67848d5b71858a88cbb5c247f9efe0514ba8 /always_send_as_photo_or_album.patch | |
parent | dc236478a21b87198281fb5fef123f0803ef5dfc (diff) | |
download | aur-067d7c3d006581f5a544151f8cb2a5276da9a17a.tar.gz |
Update to 2.4.5
Diffstat (limited to 'always_send_as_photo_or_album.patch')
-rw-r--r-- | always_send_as_photo_or_album.patch | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/always_send_as_photo_or_album.patch b/always_send_as_photo_or_album.patch index 8b3b11e81583..5b144b0bd64e 100644 --- a/always_send_as_photo_or_album.patch +++ b/always_send_as_photo_or_album.patch @@ -3,23 +3,15 @@ photo or album by default. Credits: udf diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp -index 32ff2af77..28c32cced 100644 +index 79cf159dd..814e3a4de 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp -@@ -1947,15 +1947,7 @@ void SendFilesBox::initSendWay() { - ? SendFilesWay::Album - : SendFilesWay::Photos; - } -- const auto way = Core::App().settings().sendFilesWay(); -- if (way == SendFilesWay::Files) { -- return way; -- } else if (way == SendFilesWay::Album) { -- return _list.albumIsPossible -- ? SendFilesWay::Album -- : SendFilesWay::Photos; -- } -- return (_list.albumIsPossible && !_albumPhotosCount) -+ return _list.albumIsPossible - ? SendFilesWay::Album - : SendFilesWay::Photos; - }(); +@@ -425,6 +425,8 @@ void SendFilesBox::openDialogToAddFileToAlbum() { + void SendFilesBox::initSendWay() { + _sendWay = [&] { + auto result = Core::App().settings().sendFilesWay(); ++ result.setGroupFiles(true); ++ result.setSendImagesAsPhotos(true); + if (_sendLimit == SendLimit::One) { + result.setGroupFiles(true); + return result; |