2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Check effects availability in all SendMenu-s.

This commit is contained in:
John Preston
2024-05-10 14:10:53 +04:00
parent 396ba9a984
commit d1106e5ae6
50 changed files with 394 additions and 417 deletions

View File

@@ -122,7 +122,7 @@ public:
rpl::producer<> pauseChanged() const override;
rpl::producer<bool> adjustShadowLeft() const override;
SendMenu::Type sendMenuType() const override;
SendMenu::Details sendMenuDetails() const override;
bool showMediaPreview(
Data::FileOrigin origin,
@@ -272,12 +272,12 @@ rpl::producer<bool> MainWindowShow::adjustShadowLeft() const {
});
}
SendMenu::Type MainWindowShow::sendMenuType() const {
SendMenu::Details MainWindowShow::sendMenuDetails() const {
const auto window = _window.get();
if (!window) {
return SendMenu::Type::Disabled;
return SendMenu::Details();
}
return window->content()->sendMenuType();
return window->content()->sendMenuDetails();
}
bool MainWindowShow::showMediaPreview(