blob: 5b144b0bd64ee1372c9233efab25d1fd00706076 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Description: Disables loading the previous way media was sent, so it always selects either
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 79cf159dd..814e3a4de 100644
--- a/Telegram/SourceFiles/boxes/send_files_box.cpp
+++ b/Telegram/SourceFiles/boxes/send_files_box.cpp
@@ -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;
|