diff options
author | udf | 2020-01-26 21:49:15 +0200 |
---|---|---|
committer | udf | 2020-01-26 21:49:15 +0200 |
commit | 44383b50498812a454dee372d2611e1bcb080bf7 (patch) | |
tree | 921e79606686b7461c749b1b01367a35cd22bde3 /always_send_as_photo_or_album.patch | |
parent | d6aa379872f0615c24a2e53621038180a98ba360 (diff) | |
download | aur-44383b50498812a454dee372d2611e1bcb080bf7.tar.gz |
Fix auto-selecting album when sending multiple files
Diffstat (limited to 'always_send_as_photo_or_album.patch')
-rw-r--r-- | always_send_as_photo_or_album.patch | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/always_send_as_photo_or_album.patch b/always_send_as_photo_or_album.patch index 20009befc3c5..989f99a85a10 100644 --- a/always_send_as_photo_or_album.patch +++ b/always_send_as_photo_or_album.patch @@ -2,10 +2,10 @@ Description: Disables loading the previous way media was sent, so it always sele 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 +index cb9075432..41384abd0 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp -@@ -1498,14 +1498,6 @@ void SendFilesBox::initSendWay() { +@@ -1911,15 +1911,7 @@ void SendFilesBox::initSendWay() { ? SendFilesWay::Album : SendFilesWay::Photos; } @@ -17,6 +17,8 @@ index 2f4c45c48..ed9bf4bb6 100644 - ? SendFilesWay::Album - : SendFilesWay::Photos; - } - return (_list.albumIsPossible && !_albumPhotosCount) +- return (_list.albumIsPossible && !_albumPhotosCount) ++ return _list.albumIsPossible ? SendFilesWay::Album : SendFilesWay::Photos; + }(); |