Controller::Controller(not_null<MainWindow*> window) : _window(window) { Auth().data().animationPlayInlineRequest( ) | rpl::start_with_next([this](auto item) { if (const auto video = roundVideo(item)) { video->pauseResume(); } else { startRoundVideo(item); } }, lifetime()); }
void Controller::init() { session().data().animationPlayInlineRequest( ) | rpl::start_with_next([=](auto item) { if (const auto video = roundVideo(item)) { video->pauseResume(); } else { startRoundVideo(item); } }, lifetime()); if (session().supportMode()) { initSupportMode(); } }