Track and show "too early" gift transfer/resell.

This commit is contained in:
John Preston
2025-05-01 11:00:53 +04:00
parent 3e538b732a
commit 68b3d75705
8 changed files with 81 additions and 11 deletions
+2
View File
@@ -886,6 +886,8 @@ std::optional<Data::SavedStarGift> FromTL(
} else if (const auto unique = parsed->unique.get()) {
unique->starsForTransfer = data.vtransfer_stars().value_or(-1);
unique->exportAt = data.vcan_export_at().value_or_empty();
unique->canTransferAt = data.vcan_transfer_at().value_or_empty();
unique->canResellAt = data.vcan_resell_at().value_or_empty();
}
using Id = Data::SavedStarGiftId;
const auto hasUnique = parsed->unique != nullptr;