Add send context menu to StickerSetBox.

This commit is contained in:
John Preston
2021-11-02 20:11:20 +04:00
parent e73928f6a3
commit 4efeaacf5c
4 changed files with 92 additions and 17 deletions

View File

@@ -29,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
@@ -150,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;