2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Play emoji status only twice in main menu.

This commit is contained in:
John Preston
2022-08-31 18:37:31 +04:00
parent 742b819c7e
commit 5530df8f2d
5 changed files with 15 additions and 0 deletions

View File

@@ -73,6 +73,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace Window {
namespace {
constexpr auto kPlayStatusLimit = 2;
void ShowCallsBox(not_null<Window::SessionController*> window) {
auto controller = std::make_unique<Calls::BoxController>(window);
const auto initBox = [
@@ -341,6 +343,7 @@ MainMenu::MainMenu(
st::settingsInfoPeerBadge,
controller->session().user(),
[=] { return controller->isGifPausedAtLeastFor(GifPauseReason::Layer); },
kPlayStatusLimit,
Info::Profile::Badge::Premium))
, _emojiStatusPanel(std::make_unique<Info::Profile::EmojiStatusPanel>())
, _scroll(this, st::defaultSolidScroll)