2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 15:45:12 +00:00

Start stories viewer with ComposeControls.

This commit is contained in:
John Preston
2023-05-03 22:30:37 +04:00
parent 429a3da3e5
commit 89ca38ed29
23 changed files with 884 additions and 20 deletions

View File

@@ -140,7 +140,7 @@ public:
not_null<PhotoData*> photo) const override;
void processChosenSticker(
ChatHelpers::FileChosen chosen) const override;
ChatHelpers::FileChosen &&chosen) const override;
private:
const base::weak_ptr<SessionController> _window;
@@ -233,7 +233,7 @@ bool MainWindowShow::showMediaPreview(
}
void MainWindowShow::processChosenSticker(
ChatHelpers::FileChosen chosen) const {
ChatHelpers::FileChosen &&chosen) const {
if (const auto window = _window.get()) {
Ui::PostponeCall(window, [=, chosen = std::move(chosen)]() mutable {
window->stickerOrEmojiChosen(std::move(chosen));