2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Updated TDesktop sources to 3.0.1

This commit is contained in:
RadRussianRus
2021-09-17 09:22:56 +03:00
395 changed files with 9038 additions and 5933 deletions

View File

@@ -32,6 +32,10 @@ namespace Api {
struct SendOptions;
} // namespace Api
namespace Data {
struct ForwardDraft;
} // namespace Data
namespace Main {
class Session;
} // namespace Main
@@ -64,9 +68,10 @@ public:
using SubmitCallback = Fn<void(
std::vector<not_null<PeerData*>>&&,
TextWithTags&&,
Api::SendOptions)>;
Api::SendOptions,
Data::ForwardDraft&&)>;
using FilterCallback = Fn<bool(PeerData*)>;
using GoToChatCallback = Fn<void(PeerData *peer)>;
using GoToChatCallback = Fn<void(PeerData *peer, Data::ForwardDraft&&)>;
struct Descriptor {
not_null<Main::Session*> session;
@@ -84,6 +89,7 @@ public:
const style::PeerList *st = nullptr;
bool hasMedia = false;
bool isShare = true;
std::unique_ptr<Data::ForwardDraft> draft;
};
ShareBox(QWidget*, Descriptor &&descriptor);
@@ -154,5 +160,4 @@ private:
Ui::Animations::Simple _scrollAnimation;
base::unique_qptr<Ui::DropdownMenu> _menu;
};