2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16: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

@@ -64,6 +64,7 @@ namespace Settings {
namespace {
constexpr auto kSaveBioTimeout = 1000;
constexpr auto kPlayStatusLimit = 2;
class ComposedBadge final : public Ui::RpWidget {
public:
@@ -99,6 +100,7 @@ ComposedBadge::ComposedBadge(
st::settingsInfoPeerBadge,
session->user(),
std::move(animationPaused),
kPlayStatusLimit,
Info::Profile::Badge::Premium) {
if (hasUnread) {
_unread = CreateUnread(this, rpl::single(