2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Updated TDesktop sources to 3.2.5

This commit is contained in:
RadRussianRus
2021-12-07 09:25:44 +03:00
556 changed files with 18784 additions and 8391 deletions

View File

@@ -7,7 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "base/timer.h"
#include "base/weak_ptr.h"
#include "chat_helpers/bot_command.h"
#include "ui/rp_widget.h"
@@ -18,7 +17,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
struct HistoryMessageMarkupButton;
class MainWindow;
class ConfirmBox;
class HistoryWidget;
class StackItem;
struct FileLoadResult;
@@ -31,8 +29,13 @@ class Error;
namespace Api {
struct SendAction;
struct SendOptions;
} // namespace Api
namespace SendMenu {
enum class Type;
} // namespace SendMenu
namespace Main {
class Session;
} // namespace Main
@@ -67,6 +70,7 @@ struct Content;
} // namespace Export
namespace Ui {
class ConfirmBox;
class ResizeArea;
class PlainShadow;
class DropdownMenu;
@@ -151,7 +155,11 @@ public:
QPixmap grabForShowAnimation(const Window::SectionSlideParams &params);
void checkMainSectionToLayer();
bool sendExistingDocument(not_null<DocumentData*> sticker);
[[nodiscard]] SendMenu::Type sendMenuType() const;
bool sendExistingDocument(not_null<DocumentData*> document);
bool sendExistingDocument(
not_null<DocumentData*> document,
Api::SendOptions options);
bool isActive() const;
[[nodiscard]] bool doWeMarkAsRead() const;
@@ -175,11 +183,6 @@ public:
void onFilesOrForwardDrop(const PeerId &peer, const QMimeData *data);
bool selectingPeer() const;
void deletePhotoLayer(PhotoData *photo);
// While HistoryInner is not HistoryView::ListWidget.
crl::time highlightStartTime(not_null<const HistoryItem*> item) const;
void sendBotCommand(Bot::SendCommandRequest request);
void hideSingleUseKeyboard(PeerData *peer, MsgId replyTo);
bool insertBotCommand(const QString &cmd);
@@ -201,8 +204,6 @@ public:
void ctrlEnterSubmitUpdated();
void setInnerFocus();
void scheduleViewIncrement(HistoryItem *item);
bool contentOverlapped(const QRect &globalRect);
void searchInChat(Dialogs::Key chat);
@@ -215,6 +216,8 @@ public:
Fn<void(MessageIdsList)> done);
void clearChooseReportMessages();
void toggleChooseChatTheme(not_null<PeerData*> peer);
void ui_showPeerHistory(
PeerId peer,
const SectionShow &params,
@@ -248,8 +251,6 @@ protected:
bool eventFilter(QObject *o, QEvent *e) override;
private:
void viewsIncrement();
void animationCallback();
void handleAdaptiveLayoutUpdate();
void updateWindowAdaptiveLayout();
@@ -316,12 +317,6 @@ private:
void floatPlayerDoubleClickEvent(
not_null<const HistoryItem*> item) override;
void viewsIncrementDone(
QVector<MTPint> ids,
const MTPmessages_MessageViews &result,
mtpRequestId requestId);
void viewsIncrementFail(const MTP::Error &error, mtpRequestId requestId);
void refreshResizeAreas();
template <typename MoveCallback, typename FinishCallback>
void createResizeArea(
@@ -345,7 +340,6 @@ private:
bool isThreeColumn() const;
const not_null<Window::SessionController*> _controller;
MTP::Sender _api;
Ui::Animations::Simple _a_show;
bool _showBack = false;
@@ -392,12 +386,6 @@ private:
PhotoData *_deletingPhoto = nullptr;
base::flat_map<not_null<PeerData*>, base::flat_set<MsgId>> _viewsIncremented;
base::flat_map<not_null<PeerData*>, base::flat_set<MsgId>> _viewsToIncrement;
base::flat_map<not_null<PeerData*>, mtpRequestId> _viewsIncrementRequests;
base::flat_map<mtpRequestId, not_null<PeerData*>> _viewsIncrementByRequest;
base::Timer _viewsIncrementTimer;
struct SettingBackground;
std::unique_ptr<SettingBackground> _background;