Remove .00 from credits amount.

This commit is contained in:
John Preston 2025-07-04 16:56:32 +04:00
parent 8a0869fb75
commit 09f106bd49

View file

@ -2971,7 +2971,9 @@ object_ptr<Ui::RpWidget> SetupChannelMembersAndManage(
? Ui::MakeCreditsIconEntity()
.append(QChar(' '))
.append(Info::ChannelEarn::MajorPart(credits))
.append(Info::ChannelEarn::MinorPart(credits))
.append(credits.nano()
? Info::ChannelEarn::MinorPart(credits)
: QString())
: TextWithEntities();
auto currencyText = (currency > CreditsAmount(0))
? Ui::Text::SingleCustomEmoji("_")