blob: 989f99a85a10674679bbf27f7822d3ffb277be98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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 cb9075432..41384abd0 100644
--- a/Telegram/SourceFiles/boxes/send_files_box.cpp
+++ b/Telegram/SourceFiles/boxes/send_files_box.cpp
@@ -1911,15 +1911,7 @@ 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)
+ return _list.albumIsPossible
? SendFilesWay::Album
: SendFilesWay::Photos;
}();
|