diff options
author | Dan Elkouby | 2020-08-06 14:54:50 +0300 |
---|---|---|
committer | Dan Elkouby | 2020-08-06 15:06:29 +0300 |
commit | 6895348f81bc28901e01294fd8964787a89c4b6e (patch) | |
tree | fdb9f1503f73f8cc2f18bf916e78da9ea748c162 /always_send_as_photo_or_album.patch | |
parent | 68e0ab80833cf404d75025be2f1a0816ddb2c697 (diff) | |
download | aur-6895348f81bc28901e01294fd8964787a89c4b6e.tar.gz |
Update to 2.2.0
Diffstat (limited to 'always_send_as_photo_or_album.patch')
-rw-r--r-- | always_send_as_photo_or_album.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/always_send_as_photo_or_album.patch b/always_send_as_photo_or_album.patch index cb9dbfe737b6..8b3b11e81583 100644 --- a/always_send_as_photo_or_album.patch +++ b/always_send_as_photo_or_album.patch @@ -3,14 +3,14 @@ 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 2f4c45c48..ed9bf4bb6 100644 +index 32ff2af77..28c32cced 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp -@@ -1498,14 +1498,6 @@ void SendFilesBox::initSendWay() { +@@ -1947,15 +1947,7 @@ void SendFilesBox::initSendWay() { ? SendFilesWay::Album : SendFilesWay::Photos; } -- const auto way = _controller->session().settings().sendFilesWay(); +- const auto way = Core::App().settings().sendFilesWay(); - if (way == SendFilesWay::Files) { - return way; - } else if (way == SendFilesWay::Album) { @@ -22,3 +22,4 @@ index 2f4c45c48..ed9bf4bb6 100644 + return _list.albumIsPossible ? SendFilesWay::Album : SendFilesWay::Photos; + }(); |